Task: | Just do it |
Sender: | Tunkkari |
Submission time: | 2024-11-16 16:44:24 +0200 |
Language: | Python3 (PyPy3) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.04 s | details |
#2 | ACCEPTED | 0.04 s | details |
#3 | WRONG ANSWER | 0.04 s | details |
#4 | WRONG ANSWER | 0.04 s | details |
#5 | WRONG ANSWER | 0.04 s | details |
#6 | WRONG ANSWER | 0.04 s | details |
#7 | WRONG ANSWER | 0.04 s | details |
#8 | WRONG ANSWER | 0.04 s | details |
#9 | WRONG ANSWER | 0.04 s | details |
#10 | WRONG ANSWER | 0.04 s | details |
#11 | WRONG ANSWER | 0.04 s | details |
#12 | WRONG ANSWER | 0.04 s | details |
#13 | WRONG ANSWER | 0.04 s | details |
#14 | WRONG ANSWER | 0.04 s | details |
#15 | WRONG ANSWER | 0.04 s | details |
#16 | WRONG ANSWER | 0.04 s | details |
#17 | WRONG ANSWER | 0.04 s | details |
Code
import math n = int(input()) arr = list(range(1,n+1)) arr = [2 for _ in range(n)] arr[0] = 1 arr[-1] = 3 # arr = reversed(arr) """ new_arr = [] for i,v in enumerate(arr): if i%2==0: new_arr = new_arr + [v] else: new_arr = [v] + new_arr arr = new_arr """ arr = [str(x) for x in arr] s = ' '.join(arr) print(s)
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
2 |
correct output |
---|
1 2 |
user output |
---|
1 3 |
Test 2
Verdict: ACCEPTED
input |
---|
3 |
correct output |
---|
1 2 3 |
user output |
---|
1 2 3 |
Test 3
Verdict: WRONG ANSWER
input |
---|
4 |
correct output |
---|
1 2 3 4 |
user output |
---|
1 2 2 3 |
Test 4
Verdict: WRONG ANSWER
input |
---|
5 |
correct output |
---|
1 2 4 3 5 |
user output |
---|
1 2 2 2 3 |
Test 5
Verdict: WRONG ANSWER
input |
---|
6 |
correct output |
---|
1 2 3 5 4 6 |
user output |
---|
1 2 2 2 2 3 |
Test 6
Verdict: WRONG ANSWER
input |
---|
7 |
correct output |
---|
1 2 4 6 5 3 7 |
user output |
---|
1 2 2 2 2 2 3 |
Test 7
Verdict: WRONG ANSWER
input |
---|
8 |
correct output |
---|
1 2 3 5 7 6 4 8 |
user output |
---|
1 2 2 2 2 2 2 3 |
Test 8
Verdict: WRONG ANSWER
input |
---|
9 |
correct output |
---|
1 2 4 6 8 3 7 5 9 |
user output |
---|
1 2 2 2 2 2 2 2 3 |
Test 9
Verdict: WRONG ANSWER
input |
---|
10 |
correct output |
---|
1 2 3 5 7 9 4 8 6 10 |
user output |
---|
1 2 2 2 2 2 2 2 2 3 |
Test 10
Verdict: WRONG ANSWER
input |
---|
99 |
correct output |
---|
1 2 4 6 8 10 12 14 16 18 20 22... |
user output |
---|
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... |
Test 11
Verdict: WRONG ANSWER
input |
---|
100 |
correct output |
---|
1 2 3 5 7 9 11 13 15 17 19 21 ... |
user output |
---|
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... |
Test 12
Verdict: WRONG ANSWER
input |
---|
101 |
correct output |
---|
1 2 4 6 8 10 12 14 16 18 20 22... |
user output |
---|
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... |
Test 13
Verdict: WRONG ANSWER
input |
---|
300 |
correct output |
---|
1 2 3 5 7 9 11 13 15 17 19 21 ... |
user output |
---|
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... |
Test 14
Verdict: WRONG ANSWER
input |
---|
500 |
correct output |
---|
1 2 3 5 7 9 11 13 15 17 19 21 ... |
user output |
---|
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... |
Test 15
Verdict: WRONG ANSWER
input |
---|
998 |
correct output |
---|
1 2 3 5 7 9 11 13 15 17 19 21 ... |
user output |
---|
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... |
Test 16
Verdict: WRONG ANSWER
input |
---|
999 |
correct output |
---|
1 2 4 6 8 10 12 14 16 18 20 22... |
user output |
---|
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... |
Test 17
Verdict: WRONG ANSWER
input |
---|
1000 |
correct output |
---|
1 2 3 5 7 9 11 13 15 17 19 21 ... |
user output |
---|
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... |