CSES - HIIT Open 2024 - Results
Submission details
Task:Just do it
Sender:Tunkkari
Submission time:2024-11-16 16:25:12 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#1ACCEPTED0.04 sdetails
#2ACCEPTED0.04 sdetails
#3ACCEPTED0.04 sdetails
#4ACCEPTED0.04 sdetails
#5ACCEPTED0.04 sdetails
#6ACCEPTED0.04 sdetails
#7ACCEPTED0.04 sdetails
#8ACCEPTED0.04 sdetails
#9ACCEPTED0.04 sdetails
#100.04 sdetails
#110.04 sdetails
#120.04 sdetails
#130.04 sdetails
#140.04 sdetails
#150.04 sdetails
#160.04 sdetails
#170.04 sdetails

Code

n = int(input())

arr = list(range(1,n+1))

# if n% 2== 0: arr[n//2-1] = arr[n//2-1]+1

arr = arr[::-1]

print(' '.join([str(x) for x in arr]))

Test details

Test 1

Verdict: ACCEPTED

input
2

correct output
1 2

user output
2 1

Test 2

Verdict: ACCEPTED

input
3

correct output
1 2 3

user output
3 2 1

Test 3

Verdict: ACCEPTED

input
4

correct output
1 2 3 4

user output
4 3 2 1

Test 4

Verdict: ACCEPTED

input
5

correct output
1 2 4 3 5

user output
5 4 3 2 1

Test 5

Verdict: ACCEPTED

input
6

correct output
1 2 3 5 4 6

user output
6 5 4 3 2 1

Test 6

Verdict: ACCEPTED

input
7

correct output
1 2 4 6 5 3 7

user output
7 6 5 4 3 2 1

Test 7

Verdict: ACCEPTED

input
8

correct output
1 2 3 5 7 6 4 8

user output
8 7 6 5 4 3 2 1

Test 8

Verdict: ACCEPTED

input
9

correct output
1 2 4 6 8 3 7 5 9

user output
9 8 7 6 5 4 3 2 1

Test 9

Verdict: ACCEPTED

input
10

correct output
1 2 3 5 7 9 4 8 6 10

user output
10 9 8 7 6 5 4 3 2 1

Test 10

Verdict:

input
99

correct output
1 2 4 6 8 10 12 14 16 18 20 22...

user output
99 98 97 96 95 94 93 92 91 90 ...

Test 11

Verdict:

input
100

correct output
1 2 3 5 7 9 11 13 15 17 19 21 ...

user output
100 99 98 97 96 95 94 93 92 91...

Test 12

Verdict:

input
101

correct output
1 2 4 6 8 10 12 14 16 18 20 22...

user output
101 100 99 98 97 96 95 94 93 9...

Test 13

Verdict:

input
300

correct output
1 2 3 5 7 9 11 13 15 17 19 21 ...

user output
300 299 298 297 296 295 294 29...

Test 14

Verdict:

input
500

correct output
1 2 3 5 7 9 11 13 15 17 19 21 ...

user output
500 499 498 497 496 495 494 49...

Test 15

Verdict:

input
998

correct output
1 2 3 5 7 9 11 13 15 17 19 21 ...

user output
998 997 996 995 994 993 992 99...

Test 16

Verdict:

input
999

correct output
1 2 4 6 8 10 12 14 16 18 20 22...

user output
999 998 997 996 995 994 993 99...

Test 17

Verdict:

input
1000

correct output
1 2 3 5 7 9 11 13 15 17 19 21 ...

user output
1000 999 998 997 996 995 994 9...