upload
This commit is contained in:
commit
810a9654a4
50 changed files with 4450 additions and 0 deletions
7
2/D.py
Normal file
7
2/D.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
n = int(input())
|
||||
a = [*range(1, n+1)]
|
||||
|
||||
for i in range(2, n):
|
||||
a[i], a[i//2] = a[i//2], a[i]
|
||||
|
||||
print(' '.join(map(str, a)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue