We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fefb038 commit 429034bCopy full SHA for 429034b
codeforces/784/f.py
@@ -0,0 +1,24 @@
1
+def main():
2
+ a = list(map(int, input().split()))
3
+ n = a[0]
4
+ a = a[1:]
5
+ b = []
6
+
7
+ x = 2
8
+ for _ in range(int(1.25e7)):
9
+ x = x + 2
10
11
+ for _ in range(n):
12
+ ind = 0
13
+ val = a[0]
14
+ for i, x in enumerate(a):
15
+ if x < val:
16
+ ind = i
17
+ val = x
18
19
+ b.append(val)
20
+ a = a[:ind] + a[(ind + 1):]
21
22
+ print(' '.join(map(str, b)))
23
24
+main()
0 commit comments