QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#424257#8650. Island Hoppingegypt_ioi2024_01#0 133ms4136kbC++231.2kb2024-05-29 02:51:312024-05-29 02:51:32

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: 3888kb

input:

3 9
1
3
2
2
3
3
-1

output:

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

result:

wrong answer Wrong Answer [5]

Subtask #2:

score: 0
Wrong Answer

Test #4:

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

input:

299 89401
234
106
299
82
297
192
251
3
243
223
244
6
158
29
231
62
226
12
187
196
282
102
146
229
258
270
294
44
262
121
160
25
217
169
186
126
238
201
285
65
209
31
181
45
255
109
172
60
278
11
14
163
268
41
94
97
228
22
166
134
288
103
232
24
95
92
167
144
214
130
261
175
246
66
257
34
107
87
159
...

output:

299 1
234 1
234 2
234 3
234 4
234 5
234 6
234 7
234 8
234 9
234 10
234 11
234 12
234 13
234 14
234 15
234 16
234 17
234 18
234 19
234 20
234 21
234 22
234 23
234 24
234 25
234 26
234 27
234 28
234 29
234 30
234 31
234 32
234 33
234 34
234 35
234 36
234 37
234 38
234 39
234 40
234 41
234 42
234 43
23...

result:

wrong answer Wrong Answer [3]

Subtask #3:

score: 0
Wrong Answer

Test #9:

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

input:

299 598
52
72
299
240
298
23
138
8
274
36
106
18
124
103
119
2
289
91
203
45
161
234
276
122
281
27
105
21
132
283
286
56
275
145
249
17
78
47
192
133
186
182
290
61
195
13
90
264
271
125
178
155
261
96
104
163
262
59
60
93
228
166
191
193
254
74
242
176
225
6
116
38
157
83
107
226
272
129
212
58
11...

output:

299 1
52 1
52 2
52 3
52 4
52 5
52 6
52 7
52 8
52 9
52 10
52 11
52 12
52 13
52 14
52 15
52 16
52 17
52 18
52 19
52 20
52 21
52 22
52 23
52 24
52 25
52 26
52 27
52 28
52 29
52 30
52 31
52 32
52 33
52 34
52 35
52 36
52 37
52 38
52 39
52 40
52 41
52 42
52 43
52 44
52 45
52 46
52 47
52 48
52 49
52 50
52 ...

result:

wrong answer Wrong Answer [3]

Subtask #4:

score: 0
Wrong Answer

Test #15:

score: 0
Wrong Answer
time: 117ms
memory: 3832kb

input:

299 89401
276
98
299
207
290
55
204
27
93
84
116
105
235
102
118
237
254
51
183
150
218
145
202
197
243
110
285
30
288
32
80
48
200
52
128
165
272
143
206
37
296
68
239
17
19
11
231
244
79
258
176
6
75
217
186
247
142
63
125
224
12
193
287
131
129
221
15
73
205
211
286
81
158
192
260
40
187
76
155
1...

output:

299 1
276 1
276 2
276 3
276 4
276 5
276 6
276 7
276 8
276 9
276 10
276 11
276 12
276 13
276 14
276 15
276 16
276 17
276 18
276 19
276 20
276 21
276 22
276 23
276 24
276 25
276 26
276 27
276 28
276 29
276 30
276 31
276 32
276 33
276 34
276 35
276 36
276 37
276 38
276 39
276 40
276 41
276 42
276 43
27...

result:

wrong answer Wrong Answer [3]

Subtask #5:

score: 0
Wrong Answer

Test #23:

score: 0
Wrong Answer
time: 7ms
memory: 3832kb

input:

299 897
24
271
299
97
294
30
250
36
59
191
287
100
102
112
185
186
246
35
50
143
259
18
297
31
231
38
213
41
58
11
120
139
254
184
204
63
148
156
253
19
277
127
164
72
154
111
266
238
263
155
179
44
89
116
121
2
53
39
130
87
189
34
296
145
221
79
220
52
255
25
153
109
162
27
32
42
292
46
70
167
187
...

output:

299 1
24 1
24 2
24 3
24 4
24 5
24 6
24 7
24 8
24 9
24 10
24 11
24 12
24 13
24 14
24 15
24 16
24 17
24 18
24 19
24 20
24 21
24 22
24 23
24 24
24 25
24 26
24 27
24 28
24 29
24 30
24 31
24 32
24 33
24 34
24 35
24 36
24 37
24 38
24 39
24 40
24 41
24 42
24 43
24 44
24 45
24 46
24 47
24 48
24 49
24 50
24 ...

result:

wrong answer Wrong Answer [3]

Subtask #6:

score: 0
Wrong Answer

Test #32:

score: 0
Wrong Answer
time: 133ms
memory: 3784kb

input:

300 90000
75
106
127
300
93
122
166
167
255
62
90
142
144
157
181
244
20
39
42
52
165
237
242
265
65
96
141
154
161
162
170
173
223
246
286
3
72
85
169
184
195
206
207
233
291
27
73
82
100
137
149
156
175
275
2
47
68
138
150
158
189
194
222
225
273
287
38
66
69
153
180
192
227
240
250
279
288
57
58
...

output:

300 1
75 1
75 2
75 3
75 4
75 5
75 6
75 7
75 8
75 9
75 10
75 11
75 12
75 13
75 14
75 15
75 16
75 17
75 18
75 19
75 20
75 21
75 22
75 23
75 24
75 25
75 26
75 27
75 28
75 29
75 30
75 31
75 32
75 33
75 34
75 35
75 36
75 37
75 38
75 39
75 40
75 41
75 42
75 43
75 44
75 45
75 46
75 47
75 48
75 49
75 50
75 ...

result:

wrong answer Wrong Answer [3]

Subtask #7:

score: 0
Wrong Answer

Test #58:

score: 0
Wrong Answer
time: 6ms
memory: 4136kb

input:

300 900
153
300
261
21
265
203
235
236
267
4
12
30
65
186
220
246
251
35
69
75
106
117
164
176
183
232
272
280
20
61
104
126
150
151
169
177
188
230
237
257
3
22
34
62
70
154
172
217
244
250
278
6
29
59
60
97
113
152
163
255
7
81
101
105
127
138
212
216
263
270
273
279
295
50
54
63
83
86
89
107
118
...

output:

300 1
153 1
153 2
153 3
153 4
153 5
153 6
153 7
153 8
153 9
153 10
153 11
153 12
153 13
153 14
153 15
153 16
153 17
153 18
153 19
153 20
153 21
153 22
153 23
153 24
153 25
153 26
153 27
153 28
153 29
153 30
153 31
153 32
153 33
153 34
153 35
153 36
153 37
153 38
153 39
153 40
153 41
153 42
153 43
15...

result:

wrong answer Wrong Answer [3]

Subtask #8:

score: 0
Wrong Answer

Test #84:

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

input:

299 598
174
299
292
78
265
106
132
227
155
294
97
189
235
28
93
131
156
219
281
20
114
118
147
211
289
8
92
103
107
179
185
191
253
15
50
112
140
204
206
220
240
273
9
14
60
84
113
186
215
217
224
236
268
295
26
47
59
64
94
105
117
126
152
154
172
176
200
214
218
247
264
274
1
7
11
27
30
32
52
55
87...

output:

299 1
174 1
174 2
174 3
174 4
174 5
174 6
174 7
174 8
174 9
174 10
174 11
174 12
174 13
174 14
174 15
174 16
174 17
174 18
174 19
174 20
174 21
174 22
174 23
174 24
174 25
174 26
174 27
174 28
174 29
174 30
174 31
174 32
174 33
174 34
174 35
174 36
174 37
174 38
174 39
174 40
174 41
174 42
174 43
17...

result:

wrong answer Wrong Answer [3]