-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimplesort.py
More file actions
55 lines (51 loc) · 980 Bytes
/
Copy pathsimplesort.py
File metadata and controls
55 lines (51 loc) · 980 Bytes
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
# -*- coding: utf-8 -*-
"""simpleSort.ipynb
Automatically generated by Colab.
Original file is located at
https://colab.research.google.com/drive/1SlRyWvjw5KLA5S69r_5vBrhX6ozSlNMQ
"""
a = input().split(" ")
X, Y, Z = int(a[0]), int(a[1]), int(a[2])
if X > Y:
if X > Z:
if Y > Z:
print(Z)
print(Y)
print(X)
print(end='\n')
print(X)
print(Y)
print(Z)
else:
print(Y)
print(X)
print(Z)
print(end='\n')
print(X)
print(Y)
print(Z)
elif Y > Z:
if Z > X:
print(X)
print(Z)
print(Y)
print(end='\n')
print(X)
print(Y)
print(Z)
else:
print(Z)
print(X)
print(Y)
print(end='\n')
print(X)
print(Y)
print(Z)
else:
print(Z)
print(Y)
print(X)
print(end='\n')
print(X)
print(Y)
print(Z)