Task: | Fishers |
Sender: | aalto2024k_001 |
Submission time: | 2024-11-13 17:20:04 +0200 |
Language: | Python3 (PyPy3) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.05 s | details |
#2 | WRONG ANSWER | 0.05 s | details |
#3 | WRONG ANSWER | 0.05 s | details |
#4 | WRONG ANSWER | 0.05 s | details |
#5 | WRONG ANSWER | 0.05 s | details |
#6 | WRONG ANSWER | 0.04 s | details |
#7 | WRONG ANSWER | 0.05 s | details |
#8 | WRONG ANSWER | 0.05 s | details |
#9 | WRONG ANSWER | 0.05 s | details |
#10 | WRONG ANSWER | 0.04 s | details |
#11 | WRONG ANSWER | 0.05 s | details |
#12 | WRONG ANSWER | 0.05 s | details |
#13 | WRONG ANSWER | 0.05 s | details |
#14 | WRONG ANSWER | 0.05 s | details |
#15 | WRONG ANSWER | 0.04 s | details |
#16 | WRONG ANSWER | 0.05 s | details |
#17 | WRONG ANSWER | 0.05 s | details |
#18 | WRONG ANSWER | 0.05 s | details |
#19 | WRONG ANSWER | 0.05 s | details |
#20 | WRONG ANSWER | 0.05 s | details |
#21 | WRONG ANSWER | 0.05 s | details |
#22 | WRONG ANSWER | 0.04 s | details |
#23 | WRONG ANSWER | 0.05 s | details |
#24 | WRONG ANSWER | 0.05 s | details |
#25 | WRONG ANSWER | 0.04 s | details |
#26 | WRONG ANSWER | 0.05 s | details |
#27 | WRONG ANSWER | 0.04 s | details |
#28 | WRONG ANSWER | 0.04 s | details |
#29 | WRONG ANSWER | 0.05 s | details |
#30 | WRONG ANSWER | 0.05 s | details |
#31 | WRONG ANSWER | 0.05 s | details |
#32 | WRONG ANSWER | 0.04 s | details |
#33 | WRONG ANSWER | 0.05 s | details |
#34 | WRONG ANSWER | 0.05 s | details |
#35 | WRONG ANSWER | 0.05 s | details |
#36 | WRONG ANSWER | 0.05 s | details |
#37 | WRONG ANSWER | 0.05 s | details |
#38 | WRONG ANSWER | 0.05 s | details |
#39 | WRONG ANSWER | 0.04 s | details |
#40 | WRONG ANSWER | 0.05 s | details |
#41 | WRONG ANSWER | 0.05 s | details |
#42 | WRONG ANSWER | 0.05 s | details |
#43 | WRONG ANSWER | 0.05 s | details |
#44 | WRONG ANSWER | 0.05 s | details |
#45 | WRONG ANSWER | 0.04 s | details |
#46 | WRONG ANSWER | 0.05 s | details |
#47 | WRONG ANSWER | 0.05 s | details |
#48 | WRONG ANSWER | 0.05 s | details |
#49 | WRONG ANSWER | 0.05 s | details |
#50 | WRONG ANSWER | 0.05 s | details |
#51 | WRONG ANSWER | 0.05 s | details |
#52 | WRONG ANSWER | 0.05 s | details |
#53 | WRONG ANSWER | 0.05 s | details |
#54 | WRONG ANSWER | 0.05 s | details |
#55 | WRONG ANSWER | 0.05 s | details |
#56 | WRONG ANSWER | 0.05 s | details |
#57 | WRONG ANSWER | 0.05 s | details |
#58 | WRONG ANSWER | 0.05 s | details |
#59 | WRONG ANSWER | 0.05 s | details |
#60 | WRONG ANSWER | 0.05 s | details |
#61 | WRONG ANSWER | 0.10 s | details |
#62 | WRONG ANSWER | 0.10 s | details |
#63 | WRONG ANSWER | 0.10 s | details |
#64 | WRONG ANSWER | 0.10 s | details |
#65 | WRONG ANSWER | 0.10 s | details |
Code
from collections import deque n = int(input()) x = list(map(int, input().split())) d = deque() c = 0 is_okay = True for j in range(4 * n): i = j % (2 * n) k = abs(x[i]) - 1 print(k) if d: m = d.pop() # print(m) if k != m: is_okay = False break else: d.append(k) else: d.append(k) if is_okay: print('No') else: print('Yes')
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
1 -1 1 |
correct output |
---|
No |
user output |
---|
0 0 0 0 No |
Test 2
Verdict: WRONG ANSWER
input |
---|
2 1 -2 -1 2 |
correct output |
---|
Yes |
user output |
---|
0 1 Yes |
Test 3
Verdict: WRONG ANSWER
input |
---|
2 -2 2 1 -1 |
correct output |
---|
No |
user output |
---|
1 1 0 Yes |
Test 4
Verdict: WRONG ANSWER
input |
---|
3 -2 -3 -1 1 3 2 |
correct output |
---|
No |
user output |
---|
1 2 Yes |
Test 5
Verdict: WRONG ANSWER
input |
---|
3 -2 -1 -3 3 1 2 |
correct output |
---|
No |
user output |
---|
1 0 Yes |
Test 6
Verdict: WRONG ANSWER
input |
---|
3 2 3 -2 -1 1 -3 |
correct output |
---|
Yes |
user output |
---|
1 2 Yes |
Test 7
Verdict: WRONG ANSWER
input |
---|
4 3 2 1 -1 -2 -3 4 -4 |
correct output |
---|
No |
user output |
---|
2 1 Yes |
Test 8
Verdict: WRONG ANSWER
input |
---|
4 -3 1 -1 3 -2 -4 4 2 |
correct output |
---|
No |
user output |
---|
2 0 Yes |
Test 9
Verdict: WRONG ANSWER
input |
---|
4 3 -3 2 -4 1 -1 4 -2 |
correct output |
---|
No |
user output |
---|
2 2 1 Yes |
Test 10
Verdict: WRONG ANSWER
input |
---|
4 -1 1 -2 2 3 4 -4 -3 |
correct output |
---|
No |
user output |
---|
0 0 1 Yes |
Test 11
Verdict: WRONG ANSWER
input |
---|
5 4 3 5 -2 -1 1 2 -5 -3 -4 |
correct output |
---|
No |
user output |
---|
3 2 Yes |
Test 12
Verdict: WRONG ANSWER
input |
---|
5 1 2 -2 -1 4 3 -5 5 -3 -4 |
correct output |
---|
No |
user output |
---|
0 1 Yes |
Test 13
Verdict: WRONG ANSWER
input |
---|
5 2 -5 5 1 3 4 -4 -3 -1 -2 |
correct output |
---|
No |
user output |
---|
1 4 Yes |
Test 14
Verdict: WRONG ANSWER
input |
---|
5 2 -2 1 -5 -4 4 5 -1 -3 3 |
correct output |
---|
No |
user output |
---|
1 1 0 Yes |
Test 15
Verdict: WRONG ANSWER
input |
---|
5 -1 -4 5 3 2 -5 1 4 -3 -2 |
correct output |
---|
Yes |
user output |
---|
0 3 Yes |
Test 16
Verdict: WRONG ANSWER
input |
---|
5 1 2 -3 -5 -4 4 5 3 -2 -1 |
correct output |
---|
No |
user output |
---|
0 1 Yes |
Test 17
Verdict: WRONG ANSWER
input |
---|
5 4 -1 -5 -4 2 5 -3 1 -2 3 |
correct output |
---|
Yes |
user output |
---|
3 0 Yes |
Test 18
Verdict: WRONG ANSWER
input |
---|
5 -2 4 -4 2 3 1 5 -5 -1 -3 |
correct output |
---|
No |
user output |
---|
1 3 Yes |
Test 19
Verdict: WRONG ANSWER
input |
---|
5 -4 -5 -1 3 1 -2 2 -3 4 5 |
correct output |
---|
Yes |
user output |
---|
3 4 Yes |
Test 20
Verdict: WRONG ANSWER
input |
---|
5 -5 4 1 -1 -4 2 3 -3 -2 5 |
correct output |
---|
No |
user output |
---|
4 3 Yes |
Test 21
Verdict: WRONG ANSWER
input |
---|
10 1 -7 7 -1 -2 -5 5 2 -10 4 -9 9... |
correct output |
---|
No |
user output |
---|
0 6 Yes |
Test 22
Verdict: WRONG ANSWER
input |
---|
10 5 -5 -6 -7 10 9 1 -1 -9 -10 8 ... |
correct output |
---|
No |
user output |
---|
4 4 5 Yes |
Test 23
Verdict: WRONG ANSWER
input |
---|
10 -9 1 3 2 -2 5 -5 6 8 7 -7 -8 -... |
correct output |
---|
No |
user output |
---|
8 0 Yes |
Test 24
Verdict: WRONG ANSWER
input |
---|
10 1 2 -2 -1 -3 4 -4 8 -8 5 -5 -7... |
correct output |
---|
No |
user output |
---|
0 1 Yes |
Test 25
Verdict: WRONG ANSWER
input |
---|
10 6 3 5 -2 2 -4 10 -6 9 -1 7 8 -... |
correct output |
---|
Yes |
user output |
---|
5 2 Yes |
Test 26
Verdict: WRONG ANSWER
input |
---|
10 6 -9 7 -7 1 -1 9 -6 -3 4 2 -10... |
correct output |
---|
No |
user output |
---|
5 8 Yes |
Test 27
Verdict: WRONG ANSWER
input |
---|
10 -3 6 8 -9 -1 4 -7 -6 -4 2 5 1 ... |
correct output |
---|
Yes |
user output |
---|
2 5 Yes |
Test 28
Verdict: WRONG ANSWER
input |
---|
10 -4 4 -7 2 -1 10 -3 9 -9 8 -5 -... |
correct output |
---|
No |
user output |
---|
3 3 6 Yes |
Test 29
Verdict: WRONG ANSWER
input |
---|
10 -2 -6 7 -1 -8 -5 6 1 4 -4 5 2 ... |
correct output |
---|
Yes |
user output |
---|
1 5 Yes |
Test 30
Verdict: WRONG ANSWER
input |
---|
10 8 -8 -7 -5 -3 10 6 -2 1 -1 2 -... |
correct output |
---|
No |
user output |
---|
7 7 6 Yes |
Test 31
Verdict: WRONG ANSWER
input |
---|
100 -14 14 -65 -19 100 44 -73 56 -... |
correct output |
---|
No |
user output |
---|
13 13 64 Yes |
Test 32
Verdict: WRONG ANSWER
input |
---|
100 -96 29 -90 80 -6 20 43 39 76 -... |
correct output |
---|
No |
user output |
---|
95 28 Yes |
Test 33
Verdict: WRONG ANSWER
input |
---|
100 79 -86 -28 40 -5 -11 13 69 -2 ... |
correct output |
---|
No |
user output |
---|
78 85 Yes |
Test 34
Verdict: WRONG ANSWER
input |
---|
100 74 -80 51 39 -39 -51 80 -74 26... |
correct output |
---|
No |
user output |
---|
73 79 Yes |
Test 35
Verdict: WRONG ANSWER
input |
---|
100 -53 -48 27 -91 73 38 -80 -12 5... |
correct output |
---|
Yes |
user output |
---|
52 47 Yes |
Test 36
Verdict: WRONG ANSWER
input |
---|
100 82 75 -18 36 59 93 33 74 -16 -... |
correct output |
---|
No |
user output |
---|
81 74 Yes |
Test 37
Verdict: WRONG ANSWER
input |
---|
100 -100 72 -43 63 95 -37 -48 23 3... |
correct output |
---|
Yes |
user output |
---|
99 71 Yes |
Test 38
Verdict: WRONG ANSWER
input |
---|
100 -74 -89 88 23 -66 16 -21 99 -5... |
correct output |
---|
No |
user output |
---|
73 88 Yes |
Test 39
Verdict: WRONG ANSWER
input |
---|
100 -78 36 -4 -7 -54 85 10 -61 22 ... |
correct output |
---|
Yes |
user output |
---|
77 35 Yes |
Test 40
Verdict: WRONG ANSWER
input |
---|
100 58 46 -79 14 -11 38 5 39 66 -8... |
correct output |
---|
No |
user output |
---|
57 45 Yes |
Test 41
Verdict: WRONG ANSWER
input |
---|
200 -133 -37 78 101 -124 26 -200 6... |
correct output |
---|
No |
user output |
---|
132 36 Yes |
Test 42
Verdict: WRONG ANSWER
input |
---|
200 80 -151 138 -132 -186 145 60 -... |
correct output |
---|
No |
user output |
---|
79 150 Yes |
Test 43
Verdict: WRONG ANSWER
input |
---|
200 24 157 -185 185 -157 -24 62 -1... |
correct output |
---|
No |
user output |
---|
23 156 Yes |
Test 44
Verdict: WRONG ANSWER
input |
---|
200 17 84 -43 54 -140 193 -193 140... |
correct output |
---|
No |
user output |
---|
16 83 Yes |
Test 45
Verdict: WRONG ANSWER
input |
---|
200 62 -196 90 -173 -143 -58 32 -1... |
correct output |
---|
Yes |
user output |
---|
61 195 Yes |
Test 46
Verdict: WRONG ANSWER
input |
---|
200 32 117 -59 80 79 29 92 -78 -94... |
correct output |
---|
No |
user output |
---|
31 116 Yes |
Test 47
Verdict: WRONG ANSWER
input |
---|
200 -31 -111 144 -198 -49 149 -35 ... |
correct output |
---|
Yes |
user output |
---|
30 110 Yes |
Test 48
Verdict: WRONG ANSWER
input |
---|
200 -148 -131 86 -140 176 -41 -200... |
correct output |
---|
No |
user output |
---|
147 130 Yes |
Test 49
Verdict: WRONG ANSWER
input |
---|
200 -52 187 95 133 143 -123 -88 -1... |
correct output |
---|
Yes |
user output |
---|
51 186 Yes |
Test 50
Verdict: WRONG ANSWER
input |
---|
200 -101 -182 82 -96 187 114 -129 ... |
correct output |
---|
No |
user output |
---|
100 181 Yes |
Test 51
Verdict: WRONG ANSWER
input |
---|
1000 -117 815 548 -910 710 -273 -94... |
correct output |
---|
No |
user output |
---|
116 814 Yes |
Test 52
Verdict: WRONG ANSWER
input |
---|
1000 586 754 -867 772 941 456 -456 ... |
correct output |
---|
No |
user output |
---|
585 753 Yes |
Test 53
Verdict: WRONG ANSWER
input |
---|
1000 247 -998 -430 897 395 134 993 ... |
correct output |
---|
No |
user output |
---|
246 997 Yes |
Test 54
Verdict: WRONG ANSWER
input |
---|
1000 -145 981 -405 444 881 -428 640... |
correct output |
---|
No |
user output |
---|
144 980 Yes |
Test 55
Verdict: WRONG ANSWER
input |
---|
1000 637 313 687 -543 -78 -785 628 ... |
correct output |
---|
Yes |
user output |
---|
636 312 Yes |
Test 56
Verdict: WRONG ANSWER
input |
---|
1000 -616 377 749 -717 -582 436 33 ... |
correct output |
---|
No |
user output |
---|
615 376 Yes |
Test 57
Verdict: WRONG ANSWER
input |
---|
1000 534 -329 -984 -689 -411 275 -7... |
correct output |
---|
Yes |
user output |
---|
533 328 Yes |
Test 58
Verdict: WRONG ANSWER
input |
---|
1000 -231 -855 815 805 -665 354 497... |
correct output |
---|
No |
user output |
---|
230 854 Yes |
Test 59
Verdict: WRONG ANSWER
input |
---|
1000 -25 824 -712 979 -456 -17 -356... |
correct output |
---|
Yes |
user output |
---|
24 823 Yes |
Test 60
Verdict: WRONG ANSWER
input |
---|
1000 378 153 -125 298 -622 151 -554... |
correct output |
---|
No |
user output |
---|
377 152 Yes |
Test 61
Verdict: WRONG ANSWER
input |
---|
100000 2482 97936 75560 -55358 -61956... |
correct output |
---|
No |
user output |
---|
2481 97935 Yes |
Test 62
Verdict: WRONG ANSWER
input |
---|
100000 -48238 -24424 51980 7303 55103... |
correct output |
---|
No |
user output |
---|
48237 24423 Yes |
Test 63
Verdict: WRONG ANSWER
input |
---|
100000 74971 50837 90459 -64742 -7834... |
correct output |
---|
No |
user output |
---|
74970 50836 Yes |
Test 64
Verdict: WRONG ANSWER
input |
---|
100000 -62002 67632 -67632 62002 8747... |
correct output |
---|
No |
user output |
---|
62001 67631 Yes |
Test 65
Verdict: WRONG ANSWER
input |
---|
100000 -69625 37139 -26540 -24951 357... |
correct output |
---|
Yes |
user output |
---|
69624 37138 Yes |