QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#432640#8650. Island Hoppingegypt_ioi2024_12#0 4ms4108kbC++20867b2024-06-07 14:42:512024-06-07 14:42:51

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 4056kb

input:

3 9
3
2
3
1
1
2
0
-1

output:

1 1
1 2
2 1
2 2
3 1
3 2
-1 3
-1 2

result:

wrong answer Wrong Answer [5]

Subtask #2:

score: 0
Wrong Answer

Test #4:

score: 0
Wrong Answer
time: 4ms
memory: 3876kb

input:

299 89401
79
213
242
286
192
244
69
227
99
233
29
244
272
277
54
83
67
149
72
276
163
278
196
226
216
239
60
268
225
293
101
113
43
159
23
219
63
222
89
213
38
59
97
134
18
101
167
232
160
186
212
225
78
161
143
147
6
226
122
154
45
209
35
183
55
165
159
257
32
241
199
265
116
151
21
250
157
287
119...

output:

1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 2
5 1
5 2
6 1
6 2
7 1
7 2
8 1
8 2
9 1
9 2
10 1
10 2
11 1
11 2
12 1
12 2
13 1
13 2
14 1
14 2
15 1
15 2
16 1
16 2
17 1
17 2
18 1
18 2
19 1
19 2
20 1
20 2
21 1
21 2
22 1
22 2
23 1
23 2
24 1
24 2
25 1
25 2
26 1
26 2
27 1
27 2
28 1
28 2
29 1
29 2
30 1
30 2
31 1
31 2
32 1
32 ...

result:

wrong answer Wrong Answer [6]

Subtask #3:

score: 0
Wrong Answer

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 4108kb

input:

299 598
43
151
91
119
7
130
115
139
50
109
157
176
3
181
106
138
147
235
44
197
31
64
150
210
195
271
113
196
265
295
171
251
47
145
103
106
35
270
199
259
27
283
70
144
274
298
82
153
71
231
101
152
21
281
112
232
118
194
140
146
11
79
33
252
32
245
158
202
19
46
124
274
196
229
83
116
81
97
127
29...

output:

1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 2
5 1
5 2
6 1
6 2
7 1
7 2
8 1
8 2
9 1
9 2
10 1
10 2
11 1
11 2
12 1
12 2
13 1
13 2
14 1
14 2
15 1
15 2
16 1
16 2
17 1
17 2
18 1
18 2
19 1
19 2
20 1
20 2
21 1
21 2
22 1
22 2
23 1
23 2
24 1
24 2
25 1
25 2
26 1
26 2
27 1
27 2
28 1
28 2
29 1
29 2
30 1
30 2
31 1
31 2
32 1
32 ...

result:

wrong answer Wrong Answer [6]

Subtask #4:

score: 0
Wrong Answer

Test #15:

score: 0
Wrong Answer
time: 0ms
memory: 4080kb

input:

299 89401
29
35
153
230
166
181
54
266
65
159
75
176
166
241
9
83
8
250
88
141
19
68
193
224
154
215
26
228
73
221
271
50
231
239
44
107
11
68
265
269
264
275
83
289
111
234
179
262
41
147
14
191
116
204
177
188
1
122
80
110
263
295
48
288
86
185
43
120
1
87
61
91
143
239
90
164
67
111
187
260
25
15...

output:

1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 2
5 1
5 2
6 1
6 2
7 1
7 2
8 1
8 2
9 1
9 2
10 1
10 2
11 1
11 2
12 1
12 2
13 1
13 2
14 1
14 2
15 1
15 2
16 1
16 2
17 1
17 2
18 1
18 2
19 1
19 2
20 1
20 2
21 1
21 2
22 1
22 2
23 1
23 2
24 1
24 2
25 1
25 2
26 1
26 2
27 1
27 2
28 1
28 2
29 1
29 2
30 1
30 2
31 1
31 2
32 1
32 ...

result:

wrong answer Wrong Answer [6]

Subtask #5:

score: 0
Wrong Answer

Test #23:

score: 0
Wrong Answer
time: 2ms
memory: 3812kb

input:

299 897
140
269
39
121
67
86
214
262
234
244
122
146
174
240
227
237
206
281
65
275
41
254
211
272
117
199
51
165
152
207
195
235
28
225
143
231
127
156
64
166
144
194
119
196
201
298
271
299
109
255
88
224
109
292
17
103
210
267
36
294
213
297
42
162
197
257
87
145
186
259
30
287
98
118
41
231
2
87...

output:

1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 2
5 1
5 2
6 1
6 2
7 1
7 2
8 1
8 2
9 1
9 2
10 1
10 2
11 1
11 2
12 1
12 2
13 1
13 2
14 1
14 2
15 1
15 2
16 1
16 2
17 1
17 2
18 1
18 2
19 1
19 2
20 1
20 2
21 1
21 2
22 1
22 2
23 1
23 2
24 1
24 2
25 1
25 2
26 1
26 2
27 1
27 2
28 1
28 2
29 1
29 2
30 1
30 2
31 1
31 2
32 1
32 ...

result:

wrong answer Wrong Answer [6]

Subtask #6:

score: 0
Wrong Answer

Test #32:

score: 0
Wrong Answer
time: 4ms
memory: 3828kb

input:

300 90000
133
179
82
47
65
165
266
283
29
40
24
35
28
234
86
199
186
299
109
231
29
221
105
112
128
277
117
126
108
231
247
118
131
12
234
7
94
210
141
181
160
197
26
208
219
235
6
268
40
116
22
226
138
184
7
234
5
11
80
101
45
234
102
236
67
282
111
78
6
282
148
248
70
204
119
138
62
162
5
25
6
132...

output:

1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 2
5 1
5 2
6 1
6 2
7 1
7 2
8 1
8 2
9 1
9 2
10 1
10 2
11 1
11 2
12 1
12 2
13 1
13 2
14 1
14 2
15 1
15 2
16 1
16 2
17 1
17 2
18 1
18 2
19 1
19 2
20 1
20 2
21 1
21 2
22 1
22 2
23 1
23 2
24 1
24 2
25 1
25 2
26 1
26 2
27 1
27 2
28 1
28 2
29 1
29 2
30 1
30 2
31 1
31 2
32 1
32 ...

result:

wrong answer Wrong Answer [5]

Subtask #7:

score: 0
Wrong Answer

Test #58:

score: 0
Wrong Answer
time: 2ms
memory: 3920kb

input:

300 900
201
228
88
262
97
104
35
183
96
98
70
138
60
141
23
80
46
51
76
171
43
180
69
203
141
173
95
168
159
166
264
89
196
233
119
293
32
191
176
30
235
261
152
230
8
80
67
247
148
174
31
225
170
116
107
105
244
263
106
176
26
38
19
108
77
182
61
35
4
61
43
299
109
271
31
174
51
74
76
147
197
157
2...

output:

1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 2
5 1
5 2
6 1
6 2
7 1
7 2
8 1
8 2
9 1
9 2
10 1
10 2
11 1
11 2
12 1
12 2
13 1
13 2
14 1
14 2
15 1
15 2
16 1
16 2
17 1
17 2
18 1
18 2
19 1
19 2
20 1
20 2
21 1
21 2
22 1
22 2
23 1
23 2
24 1
24 2
25 1
25 2
26 1
26 2
27 1
27 2
28 1
28 2
29 1
29 2
30 1
30 2
31 1
31 2
32 1
32 ...

result:

wrong answer Wrong Answer [6]

Subtask #8:

score: 0
Wrong Answer

Test #84:

score: 0
Wrong Answer
time: 2ms
memory: 3812kb

input:

299 598
86
94
79
228
49
166
124
138
257
262
51
129
214
55
20
206
50
64
177
262
200
209
238
150
66
223
15
92
14
92
38
68
229
254
175
263
193
31
8
28
148
33
45
197
234
160
32
105
231
48
175
186
126
180
20
189
142
196
127
172
91
193
24
105
148
221
246
203
150
173
62
159
109
69
16
68
54
144
129
6
207
44...

output:

1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 2
5 1
5 2
6 1
6 2
7 1
7 2
8 1
8 2
9 1
9 2
10 1
10 2
11 1
11 2
12 1
12 2
13 1
13 2
14 1
14 2
15 1
15 2
16 1
16 2
17 1
17 2
18 1
18 2
19 1
19 2
20 1
20 2
21 1
21 2
22 1
22 2
23 1
23 2
24 1
24 2
25 1
25 2
26 1
26 2
27 1
27 2
28 1
28 2
29 1
29 2
30 1
30 2
31 1
31 2
32 1
32 ...

result:

wrong answer Wrong Answer [6]