-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1042-SimpleSort.py
55 lines (52 loc) · 1015 Bytes
/
1042-SimpleSort.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
def main():
a, b, c = map(int, input().split())
if a > b and a > c and b > c:
print(c)
print(b)
print(a)
print()
print(a)
print(b)
print(c)
elif a > b and a > c and c > b:
print(b)
print(c)
print(a)
print()
print(a)
print(b)
print(c)
elif b > a and b > c and a > c:
print(c)
print(a)
print(b)
print()
print(a)
print(b)
print(c)
elif b > a and b > c and c > a:
print(a)
print(c)
print(b)
print()
print(a)
print(b)
print(c)
elif c > a and c > b and b > a:
print(a)
print(b)
print(c)
print()
print(a)
print(b)
print(c)
elif c > a and c > b and a > b:
print(b)
print(a)
print(c)
print()
print(a)
print(b)
print(c)
if __name__ == '__main__':
main()