Submission details
Task:Fishers
Sender:aalto25k_001
Submission time:2025-11-12 17:11:09 +0200
Language:C++ (C++17)
Status:READY
Result:
Test results
testverdicttime
#1ACCEPTED0.00 sdetails
#20.00 sdetails
#3ACCEPTED0.00 sdetails
#4ACCEPTED0.00 sdetails
#5ACCEPTED0.00 sdetails
#6ACCEPTED0.00 sdetails
#7ACCEPTED0.00 sdetails
#8ACCEPTED0.00 sdetails
#9ACCEPTED0.00 sdetails
#100.00 sdetails
#11ACCEPTED0.00 sdetails
#120.00 sdetails
#130.00 sdetails
#140.00 sdetails
#15ACCEPTED0.00 sdetails
#160.00 sdetails
#17ACCEPTED0.00 sdetails
#18ACCEPTED0.00 sdetails
#19ACCEPTED0.00 sdetails
#200.00 sdetails
#210.00 sdetails
#220.00 sdetails
#230.00 sdetails
#240.00 sdetails
#25ACCEPTED0.00 sdetails
#260.00 sdetails
#27ACCEPTED0.00 sdetails
#280.00 sdetails
#29ACCEPTED0.00 sdetails
#300.00 sdetails
#310.00 sdetails
#320.00 sdetails
#330.00 sdetails
#340.00 sdetails
#35ACCEPTED0.00 sdetails
#360.00 sdetails
#37ACCEPTED0.00 sdetails
#380.00 sdetails
#39ACCEPTED0.00 sdetails
#400.00 sdetails
#410.00 sdetails
#420.01 sdetails
#430.00 sdetails
#440.00 sdetails
#45ACCEPTED0.00 sdetails
#460.00 sdetails
#47ACCEPTED0.00 sdetails
#480.01 sdetails
#49ACCEPTED0.00 sdetails
#500.00 sdetails
#510.00 sdetails
#520.00 sdetails
#530.00 sdetails
#540.00 sdetails
#55ACCEPTED0.00 sdetails
#560.01 sdetails
#57ACCEPTED0.00 sdetails
#580.01 sdetails
#59ACCEPTED0.00 sdetails
#600.01 sdetails
#610.07 sdetails
#620.07 sdetails
#630.07 sdetails
#640.07 sdetails
#65ACCEPTED0.07 sdetails

Code

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define til(n) for (ll i = 0; i < n; i++)
#define all(a) a.begin(), a.end()
#define dist(a, it) distance(a.begin(), it)
#define idxof(a, elem) dist(a, find(all(a), elem))

int main() {
	ll n;
	cin >> n;
	vector<ll> f(2*n);
	til (2*n) {
		ll f1;
		cin >> f1;
		if (f1 > 0) f1--;
		else f1++;
		f[i] = f1;
	}
	ll d = idxof(f, -f[0]);
	til (2*n) {
		cerr << d << '\n';
		cerr << f[i] << ' ' << -f[(i+d+2*n) % (2*n)] << '\n';
		if (f[i] != -f[(i+d+2*n) % (2*n)]) goto yes;
		d -= 2;

	}
	cout << "No\n";
	return 0;
yes:
	cout << "Yes\n";
}

Test details

Test 1

Verdict: ACCEPTED

input
1
-1 1 

correct output
No

user output
No

Error:
0
0 0
-2
0 0

Test 2

Verdict:

input
2
1 -2 -1 2 

correct output
Yes

user output
No

Error:
0
0 0
-2
-1 -1
-4
0 0
-6
1 1

Test 3

Verdict: ACCEPTED

input
2
-2 2 1 -1 

correct output
No

user output
No

Error:
1
-1 -1
-1
1 1
-3
0 0
-5
0 0

Test 4

Verdict: ACCEPTED

input
3
-2 -3 -1 1 3 2 

correct output
No

user output
No

Error:
5
-1 -1
3
-2 -2
1
0 0
-1
0 0
-3
2 2
-5
1 1

Test 5

Verdict: ACCEPTED

input
3
-2 -1 -3 3 1 2 

correct output
No

user output
No

Error:
5
-1 -1
3
0 0
1
-2 -2
-1
2 2
-3
0 0
-5
1 1

Test 6

Verdict: ACCEPTED

input
3
2 3 -2 -1 1 -3 

correct output
Yes

user output
Yes

Error:
2
1 1
0
2 -2

Test 7

Verdict: ACCEPTED

input
4
3 2 1 -1 -2 -3 4 -4 

correct output
No

user output
No

Error:
5
2 2
3
1 1
1
0 0
-1
0 0
-3
-1 -1
-5
-2 -2
-7
3 3
-9
-3 -3

Test 8

Verdict: ACCEPTED

input
4
-3 1 -1 3 -2 -4 4 2 

correct output
No

user output
No

Error:
3
-2 -2
1
0 0
-1
0 0
-3
2 2
-5
-1 -1
-7
-3 -3
-9
3 3
-11
1 1

Test 9

Verdict: ACCEPTED

input
4
3 -3 2 -4 1 -1 4 -2 

correct output
No

user output
No

Error:
1
2 2
-1
-2 -2
-3
1 1
-5
-3 -3
-7
0 0
-9
0 0
-11
3 3
-13
-1 -1

Test 10

Verdict:

input
4
-1 1 -2 2 3 4 -4 -3 

correct output
No

user output
Yes

Error:
0
0 0
-2
0 2

Test 11

Verdict: ACCEPTED

input
5
4 3 5 -2 -1 1 2 -5 -3 -4 

correct output
No

user output
No

Error:
9
3 3
7
2 2
5
4 4
3
-1 -1
1
0 0
-1
0 0
-3
1 1
-5
-4 -4
-7
-2 -2
-9
-3 -3

Test 12

Verdict:

input
5
1 2 -2 -1 4 3 -5 5 -3 -4 

correct output
No

user output
Yes

Error:
0
0 0
-2
1 3

Test 13

Verdict:

input
5
2 -5 5 1 3 4 -4 -3 -1 -2 

correct output
No

user output
Yes

Error:
9
1 1
7
-4 0

Test 14

Verdict:

input
5
2 -2 1 -5 -4 4 5 -1 -3 3 

correct output
No

user output
Yes

Error:
1
1 1
-1
-1 -1
-3
0 -2

Test 15

Verdict: ACCEPTED

input
5
-1 -4 5 3 2 -5 1 4 -3 -2 

correct output
Yes

user output
Yes

Error:
0
0 0
-2
-3 1

Test 16

Verdict:

input
5
1 2 -3 -5 -4 4 5 3 -2 -1 

correct output
No

user output
Yes

Error:
0
0 0
-2
1 0

Test 17

Verdict: ACCEPTED

input
5
4 -1 -5 -4 2 5 -3 1 -2 3 

correct output
Yes

user output
Yes

Error:
3
3 3
1
0 4

Test 18

Verdict: ACCEPTED

input
5
-2 4 -4 2 3 1 5 -5 -1 -3 

correct output
No

user output
No

Error:
3
-1 -1
1
3 3
-1
-3 -3
-3
1 1
-5
2 2
-7
0 0
-9
4 4
-11
-4 -4
-13
0 0
-15
-2 -2

Test 19

Verdict: ACCEPTED

input
5
-4 -5 -1 3 1 -2 2 -3 4 5 

correct output
Yes

user output
Yes

Error:
8
-3 -3
6
-4 2

Test 20

Verdict:

input
5
-5 4 1 -1 -4 2 3 -3 -2 5 

correct output
No

user output
Yes

Error:
9
-4 -4
7
3 1

Test 21

Verdict:

input
10
1 -7 7 -1 -2 -5 5 2 -10 4 -9 9...

correct output
No

user output
Yes

Error:
0
0 0
-2
-6 -7

Test 22

Verdict:

input
10
5 -5 -6 -7 10 9 1 -1 -9 -10 8 ...

correct output
No

user output
Yes

Error:
1
4 4
-1
-4 -4
-3
-5 -5
-5
-6 -6
-7
9 3

Test 23

Verdict:

input
10
-9 1 3 2 -2 5 -5 6 8 7 -7 -8 -...

correct output
No

user output
Yes

Error:
19
-8 -8
17
0 0
15
2 2
13
1 9

Test 24

Verdict:

input
10
1 2 -2 -1 -3 4 -4 8 -8 5 -5 -7...

correct output
No

user output
Yes

Error:
0
0 0
-2
1 -2

Test 25

Verdict: ACCEPTED

input
10
6 3 5 -2 2 -4 10 -6 9 -1 7 8 -...

correct output
Yes

user output
Yes

Error:
7
5 5
5
2 -9

Test 26

Verdict:

input
10
6 -9 7 -7 1 -1 9 -6 -3 4 2 -10...

correct output
No

user output
Yes

Error:
7
5 5
5
-8 -8
3
6 0

Test 27

Verdict: ACCEPTED

input
10
-3 6 8 -9 -1 4 -7 -6 -4 2 5 1 ...

correct output
Yes

user output
Yes

Error:
19
-2 -2
17
5 9

Test 28

Verdict:

input
10
-4 4 -7 2 -1 10 -3 9 -9 8 -5 -...

correct output
No

user output
Yes

Error:
1
-3 -3
-1
3 3
-3
-6 -6
-5
1 1
-7
0 0
-9
9 9
-11
-2 -2
-13
8 7

Test 29

Verdict: ACCEPTED

input
10
-2 -6 7 -1 -8 -5 6 1 4 -4 5 2 ...

correct output
Yes

user output
Yes

Error:
11
-1 -1
9
-5 -4

Test 30

Verdict:

input
10
8 -8 -7 -5 -3 10 6 -2 1 -1 2 -...

correct output
No

user output
Yes

Error:
1
7 7
-1
-7 -7
-3
-6 -6
-5
-4 -4
-7
-2 -2
-9
9 8

Test 31

Verdict:

input
100
-14 14 -65 -19 100 44 -73 56 -...

correct output
No

user output
Yes

Error:
1
-13 -13
-1
13 13
-3
-64 -64
-5
-18 -18
-7
99 99
-9
43 43
-11
-72 -72
-13
55 55
-15
0 0
-17
-31 -31
-19
70 70
-21
12 12
-23
27 27
-25
-25 -25
-27
58 58
-29
-15 -15
-31
97 97
-33
-29 -29
-35
62 62
-37
-6 -6
-39
-9 -36

Test 32

Verdict:

input
100
-96 29 -90 80 -6 20 43 39 76 -...

correct output
No

user output
Yes

Error:
173
-95 -95
171
28 28
169
-89 -89
167
79 -9

Test 33

Verdict:

input
100
79 -86 -28 40 -5 -11 13 69 -2 ...

correct output
No

user output
Yes

Error:
181
78 78
179
-85 -9

Test 34

Verdict:

input
100
74 -80 51 39 -39 -51 80 -74 26...

correct output
No

user output
Yes

Error:
7
73 73
5
-79 -79
3
50 50
1
38 38
-1
-38 -38
-3
-50 -50
-5
79 79
-7
-73 -73
-9
25 25
-11
11 11
-13
99 99
-15
2 2
-17
40 40
-19
-64 -64
-21
-28 -28
-23
-91 -91
-25
80 80
-27
-77 -77
-29
10 10
-31
-15 -15
-33
23 23
-35
-7 -7
-37
-67 -67
-39
49 75

Test 35

Verdict: ACCEPTED

input
100
-53 -48 27 -91 73 38 -80 -12 5...

correct output
Yes

user output
Yes

Error:
175
-52 -52
173
-47 63

Test 36

Verdict:

input
100
82 75 -18 36 59 93 33 74 -16 -...

correct output
No

user output
Yes

Error:
153
81 81
151
74 74
149
-17 -17
147
35 35
145
58 58
143
92 92
141
32 32
139
73 73
137
-15 -15
135
-28 -28
133
-4 -4
131
38 38
129
-3 -3
127
-64 -64
125
85 85
123
65 65
121
18 18
119
96 96
117
-51 -51
115
27 27
113
-40 -40
111
99 99
109
-14 -14
107
20 20
105
-34 -34
103
-93 -93
101
-13 -13
99
-69 -69
97
-26 -26
95
67 67
93
63 63
91
-60 -60
89
87 87
87
88 88
85
89 89
83
90 90
81
-76 -76
79
-47 -47
77
-33 -33
75
-21 -21
73
-71 -71
71
-54 -54
69
98 98
67
22 22
65
-61 -61
63
-80 -80
61
-55 -55
59
41 41
57
23 23
55
86 86
53
-24 -24
51
72 72
49
-29 -29
47
83 83
45
-66 -66
43
-8 -8
41
11 11
39
-53 -53
37
5 5
35
42 -10

Test 37

Verdict: ACCEPTED

input
100
-100 72 -43 63 95 -37 -48 23 3...

correct output
Yes

user output
Yes

Error:
36
-99 -99
34
71 2

Test 38

Verdict:

input
100
-74 -89 88 23 -66 16 -21 99 -5...

correct output
No

user output
Yes

Error:
83
-73 -73
81
-88 -88
79
87 87
77
22 22
75
-65 -65
73
15 15
71
-20 -20
69
98 98
67
-57 -57
65
60 60
63
30 30
61
56 56
59
53 53
57
12 12
55
91 91
53
-55 -55
51
68 68
49
-70 -70
47
77 77
45
44 44
43
28 28
41
84 84
39
-94 -94
37
61 61
35
-50 -50
33
-32 -32
31
93 93
29
99 99
27
-4 -4
25
75 75
23
47 47
21
41 41
19
39 39
17
-31 -31
15
19 19
13
52 52
11
-83 -83
9
95 95
7
17 17
5
-62 -62
3
54 54
1
3 3
-1
-3 -3
-3
-54 -54
-5
62 62
-7
-17 -17
-9
-95 -95
-11
83 83
-13
-52 -52
-15
-19 -19
-17
31 31
-19
-39 -39
-21
-41 -41
-23
-47 -47
-25
-75 -75
-27
4 4
-29
-99 -99
-31
-93 -93
-33
32 32
-35
50 50
-37
-61 -61
-39
94 94
-41
-84 -84
-43
-28 -28
-45
-44 -44
-47
-77 -77
-49
70 70
-51
-68 -68
-53
55 55
-55
-91 -91
-57
-12 -12
-59
-53 -53
-61
-56 -56
-63
-30 -30
-65
-60 -60
-67
57 57
-69
-98 -98
-71
20 20
-73
-15 -15
-75
65 65
-77
-22 -22
-79
-87 -87
-81
88 88
-83
73 73
-85
81 81
-87
43 43
-89
-74 -74
-91
-71 -71
-93
80 80
-95
90 90
-97
-18 -18
-99
63 63
-101
96 96
-103
-8 -8
-105
-97 -97
-107
64 64
-109...

Test 39

Verdict: ACCEPTED

input
100
-78 36 -4 -7 -54 85 10 -61 22 ...

correct output
Yes

user output
Yes

Error:
89
-77 -77
87
35 -93

Test 40

Verdict:

input
100
58 46 -79 14 -11 38 5 39 66 -8...

correct output
No

user output
Yes

Error:
181
57 57
179
45 45
177
-78 -78
175
13 13
173
-10 -10
171
37 37
169
4 4
167
38 38
165
65 65
163
-86 -86
161
8 8
159
-12 -12
157
79 79
155
-18 -18
153
35 35
151
-90 -90
149
-83 -83
147
-22 -22
145
80 80
143
94 94
141
89 89
139
-41 -41
137
68 68
135
-34 -92

Test 41

Verdict:

input
200
-133 -37 78 101 -124 26 -200 6...

correct output
No

user output
Yes

Error:
399
-132 -132
397
-36 -36
395
77 77
393
100 100
391
-123 -123
389
25 25
387
-199 -199
385
61 61
383
47 47
381
112 112
379
-21 -21
377
-91 -91
375
-9 -9
373
115 -35

Test 42

Verdict:

input
200
80 -151 138 -132 -186 145 60 -...

correct output
No

user output
Yes

Error:
399
79 79
397
-150 -150
395
137 -164

Test 43

Verdict:

input
200
24 157 -185 185 -157 -24 62 -1...

correct output
No

user output
Yes

Error:
5
23 23
3
156 156
1
-184 -184
-1
184 184
-3
-156 -156
-5
-23 -23
-7
61 61
-9
-158 -109

Test 44

Verdict:

input
200
17 84 -43 54 -140 193 -193 140...

correct output
No

user output
Yes

Error:
11
16 16
9
83 83
7
-42 -42
5
53 53
3
-139 -139
1
192 192
-1
-192 -192
-3
139 139
-5
-53 -53
-7
42 42
-9
-83 -83
-11
-16 -16
-13
-193 -193
-15
-55 -55
-17
-130 -130
-19
148 148
-21
177 177
-23
-61 39

Test 45

Verdict: ACCEPTED

input
200
62 -196 90 -173 -143 -58 32 -1...

correct output
Yes

user output
Yes

Error:
175
61 61
173
-195 -8

Test 46

Verdict:

input
200
32 117 -59 80 79 29 92 -78 -94...

correct output
No

user output
Yes

Error:
209
31 31
207
116 116
205
-58 -58
203
79 79
201
78 78
199
28 28
197
91 91
195
-77 -77
193
-93 -93
191
141 141
189
159 159
187
51 51
185
12 12
183
10 10
181
62 62
179
-129 -129
177
-41 -41
175
100 100
173
68 68
171
-65 -65
169
172 172
167
115 115
165
71 71
163
189 189
161
57 57
159
-155 -155
157
-195 -195
155
-151 -151
153
174 174
151
-43 -43
149
-27 -27
147
110 110
145
140 140
143
66 66
141
107 107
139
-76 -76
137
181 181
135
-32 -32
133
53 53
131
-108 -108
129
30 30
127
-21 -21
125
-67 -67
123
-84 -84
121
-193 -193
119
-98 -98
117
120 120
115
11 11
113
-15 -15
111
184 184
109
126 126
107
29 29
105
164 164
103
-142 -142
101
-167 -167
99
-188 -188
97
-5 -5
95
-138 -138
93
-125 -125
91
104 104
89
190 190
87
-131 -131
85
-199 -199
83
-113 -113
81
20 20
79
1 1
77
9 9
75
-136 -136
73
132 132
71
34 -45

Test 47

Verdict: ACCEPTED

input
200
-31 -111 144 -198 -49 149 -35 ...

correct output
Yes

user output
Yes

Error:
193
-30 -30
191
-110 -175

Test 48

Verdict:

input
200
-148 -131 86 -140 176 -41 -200...

correct output
No

user output
Yes

Error:
83
-147 -147
81
-130 -130
79
85 85
77
-139 -139
75
175 175
73
-40 -40
71
-199 -199
69
48 48
67
-164 -164
65
-135 -135
63
-37 -37
61
149 149
59
-196 -196
57
146 146
55
34 34
53
170 170
51
13 13
49
-124 -124
47
-143 -143
45
54 54
43
11 11
41
119 119
39
-115 -115
37
30 30
35
-120 -120
33
98 98
31
92 92
29
51 51
27
-74 -74
25
178 178
23
-117 -117
21
15 15
19
52 52
17
99 99
15
-75 -75
13
-29 -29
11
-94 -94
9
-83 -83
7
187 187
5
-49 -49
3
101 101
1
23 23
-1
-23 -23
-3
-101 -101
-5
49 49
-7
-187 -187
-9
83 83
-11
94 94
-13
29 29
-15
75 75
-17
-99 -99
-19
-52 -52
-21
-15 -15
-23
117 117
-25
-178 -178
-27
74 74
-29
-51 -51
-31
-92 -92
-33
-98 -98
-35
120 120
-37
-30 -30
-39
115 115
-41
-119 -119
-43
-11 -11
-45
-54 -54
-47
143 143
-49
124 124
-51
-13 -13
-53
-170 -170
-55
-34 -34
-57
-146 -146
-59
196 196
-61
-149 -149
-63
37 37
-65
135 135
-67
164 164
-69
-48 -48
-71
199 199
-73
40 40
-75
-175 -175
-77
139 139
-79
-85 -85
-81
130 130
-83
147 147
-85
-44 -44
-87
32 32
-89
96 96
-91
185 185
-93...

Test 49

Verdict: ACCEPTED

input
200
-52 187 95 133 143 -123 -88 -1...

correct output
Yes

user output
Yes

Error:
308
-51 -51
306
186 71

Test 50

Verdict:

input
200
-101 -182 82 -96 187 114 -129 ...

correct output
No

user output
Yes

Error:
355
-100 -100
353
-181 -181
351
81 81
349
-95 -95
347
186 186
345
113 113
343
-128 -128
341
133 133
339
-65 -65
337
-84 -84
335
-148 -148
333
-123 -123
331
-59 -59
329
-44 -44
327
146 146
325
-129 -129
323
-5 -5
321
92 92
319
-198 -198
317
-169 -169
315
-150 -150
313
-93 -93
311
-17 -17
309
-34 -34
307
22 22
305
-97 -97
303
67 67
301
121 121
299
-120 -120
297
-132 -132
295
72 72
293
-180 -180
291
43 43
289
-152 -152
287
189 189
285
174 174
283
-105 -105
281
139 139
279
108 108
277
54 54
275
-3 -3
273
-62 -62
271
-4 61

Test 51

Verdict:

input
1000
-117 815 548 -910 710 -273 -94...

correct output
No

user output
Yes

Error:
17
-116 -116
15
814 814
13
547 547
11
-909 -909
9
709 709
7
-272 -272
5
-945 -945
3
-696 -696
1
-88 -88
-1
88 88
-3
696 696
-5
945 945
-7
272 272
-9
-709 -709
-11
909 909
-13
-547 -547
-15
-814 -814
-17
116 116
-19
-303 -303
-21
159 159
-23
-868 -868
-25
-83 -83
-27
224 224
-29
373 373
-31
-619 -619
-33
-286 -286
-35
-436 -436
-37
-431 -431
-39
-748 928

Test 52

Verdict:

input
1000
586 754 -867 772 941 456 -456 ...

correct output
No

user output
Yes

Error:
1961
585 585
1959
753 753
1957
-866 160

Test 53

Verdict:

input
1000
247 -998 -430 897 395 134 993 ...

correct output
No

user output
Yes

Error:
1981
246 246
1979
-997 -997
1977
-429 -771

Test 54

Verdict:

input
1000
-145 981 -405 444 881 -428 640...

correct output
No

user output
Yes

Error:
17
-144 -144
15
980 980
13
-404 -404
11
443 443
9
880 880
7
-427 -427
5
639 639
3
418 418
1
-856 -856
-1
856 856
-3
-418 -418
-5
-639 -639
-7
427 427
-9
-880 -880
-11
-443 -443
-13
404 404
-15
-980 -980
-17
144 144
-19
-398 -398
-21
-124 -124
-23
539 539
-25
-977 -977
-27
465 465
-29
-307 -307
-31
247 247
-33
-4 -4
-35
-530 -783

Test 55

Verdict: ACCEPTED

input
1000
637 313 687 -543 -78 -785 628 ...

correct output
Yes

user output
Yes

Error:
887
636 636
885
312 760

Test 56

Verdict:

input
1000
-616 377 749 -717 -582 436 33 ...

correct output
No

user output
Yes

Error:
825
-615 -615
823
376 376
821
748 748
819
-716 -716
817
-581 -581
815
435 435
813
32 32
811
946 946
809
-51 -51
807
-964 -964
805
397 397
803
866 866
801
267 267
799
974 974
797
214 214
795
415 415
793
537 537
791
390 390
789
237 237
787
-652 -652
785
-732 -732
783
-434 -434
781
-526 -526
779
551 551
777
-63 -63
775
-784 -784
773
25 25
771
-599 -599
769
688 688
767
-206 -206
765
-230 -230
763
-239 -239
761
663 663
759
948 948
757
640 640
755
-527 -527
753
-668 -668
751
-270 -270
749
-922 -922
747
342 342
745
318 318
743
-777 -777
741
750 750
739
-95 -95
737
-171 -171
735
-781 -781
733
429 429
731
-382 -382
729
-185 -185
727
-608 -608
725
-951 -951
723
723 723
721
94 94
719
841 841
717
-972 -972
715
868 868
713
334 334
711
137 137
709
873 873
707
327 327
705
883 883
703
89 89
701
-952 -952
699
348 348
697
-826 -826
695
464 464
693
3 3
691
709 709
689
294 294
687
183 183
685
406 406
683
-634 -634
681
-309 -309
679
-278 -278
677
110 110
675
154 154
673
-258 -258
671
-99 -99
669
479 479
66...

Test 57

Verdict: ACCEPTED

input
1000
534 -329 -984 -689 -411 275 -7...

correct output
Yes

user output
Yes

Error:
1845
533 533
1843
-328 375

Test 58

Verdict:

input
1000
-231 -855 815 805 -665 354 497...

correct output
No

user output
Yes

Error:
1781
-230 -230
1779
-854 -854
1777
814 814
1775
804 804
1773
-664 -664
1771
353 353
1769
496 496
1767
549 549
1765
606 606
1763
705 705
1761
22 22
1759
710 710
1757
-12 -12
1755
-553 -553
1753
272 272
1751
-920 -920
1749
-29 -29
1747
-161 -161
1745
-764 -764
1743
237 237
1741
642 642
1739
345 345
1737
332 332
1735
-608 -608
1733
580 580
1731
-737 -737
1729
-66 -66
1727
98 98
1725
-238 -238
1723
-173 -173
1721
824 824
1719
565 565
1717
376 376
1715
-660 -660
1713
-55 -55
1711
923 923
1709
-735 -735
1707
-593 -593
1705
217 217
1703
-885 -885
1701
-670 -670
1699
278 278
1697
-879 -879
1695
-530 -530
1693
484 484
1691
-231 -231
1689
-487 -487
1687
-139 -139
1685
-874 -874
1683
986 986
1681
-947 -947
1679
-209 -209
1677
996 996
1675
64 64
1673
-625 -625
1671
744 744
1669
-688 -688
1667
-489 -489
1665
-689 -689
1663
-108 -108
1661
876 876
1659
-223 -223
1657
473 473
1655
-75 -75
1653
-853 -853
1651
-199 -199
1649
-155 -155
1647
-10 -10
1645
-909 -909
1643
193 193
1641
-671 -671
1639
887 887...

Test 59

Verdict: ACCEPTED

input
1000
-25 824 -712 979 -456 -17 -356...

correct output
Yes

user output
Yes

Error:
106
-24 -24
104
823 796

Test 60

Verdict:

input
1000
378 153 -125 298 -622 151 -554...

correct output
No

user output
Yes

Error:
1369
377 377
1367
152 152
1365
-124 -124
1363
297 297
1361
-621 -621
1359
150 150
1357
-553 -553
1355
895 895
1353
-484 -484
1351
-507 -507
1349
-805 -805
1347
786 786
1345
546 546
1343
694 694
1341
-396 -396
1339
457 457
1337
733 733
1335
-558 -558
1333
653 653
1331
862 862
1329
454 454
1327
464 464
1325
232 232
1323
-770 -770
1321
619 619
1319
554 554
1317
120 120
1315
801 801
1313
119 119
1311
915 915
1309
-91 -91
1307
463 463
1305
-54 -54
1303
291 291
1301
47 47
1299
214 214
1297
595 595
1295
-533 -533
1293
476 476
1291
114 114
1289
-568 -568
1287
361 361
1285
-626 -626
1283
-693 -693
1281
-272 -272
1279
-987 -987
1277
-244 -244
1275
-913 -913
1273
-926 -926
1271
-458 -458
1269
782 264

Test 61

Verdict:

input
100000
2482 97936 75560 -55358 -61956...

correct output
No

user output
Yes

Error:
199983
2481 2481
199981
97935 97935
199979
75559 75559
199977
-55357 -55357
199975
-61955 -84720

Test 62

Verdict:

input
100000
-48238 -24424 51980 7303 55103...

correct output
No

user output
Yes

Error:
27
-48237 -48237
25
-24423 -24423
23
51979 51979
21
7302 7302
19
55102 55102
17
-6194 -6194
15
25071 25071
13
4572 4572
11
59521 59521
9
-96141 -96141
7
69532 69532
5
13767 13767
3
30410 30410
1
-57156 -57156
-1
57156 57156
-3
-30410 -30410
-5
-13767 -13767
-7
-69532 -69532
-9
96141 96141
-11
-59521 -59521
-13
-4572 -4572
-15
-25071 -25071
-17
6194 6194
-19
-55102 -55102
-21
-7302 -7302
-23
-51979 -51979
-25
24423 24423
-27
48237 48237
-29
15314 -34656

Test 63

Verdict:

input
100000
74971 50837 90459 -64742 -7834...

correct output
No

user output
Yes

Error:
199993
74970 74970
199991
50836 50836
199989
90458 90458
199987
-64741 -64741
199985
-78347 -78347
199983
-93696 -93696
199981
96651 96651
199979
9010 9010
199977
-65914 -65914
199975
93765 93765
199973
-36459 -36459
199971
23653 -18454

Test 64

Verdict:

input
100000
-62002 67632 -67632 62002 8747...

correct output
No

user output
Yes

Error:
3
-62001 -62001
1
67631 67631
-1
-67631 -67631
-3
62001 62001
-5
87476 87476
-7
-78844 -78844
-9
36566 36566
-11
-95645 -95645
-13
-71597 -88571

Test 65

Verdict: ACCEPTED

input
100000
-69625 37139 -26540 -24951 357...

correct output
Yes

user output
Yes

Error:
92431
-69624 -69624
92429
37138 -79175