QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#476886#8650. Island Hoppingegypt_ioi2024b_050 1ms4208kbC++202.9kb2024-07-13 21:26:142024-07-13 21:26:14

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Runtime Error

Test #1:

score: 0
Runtime Error

input:

3 9

output:


result:


Subtask #2:

score: 0
Runtime Error

Test #4:

score: 0
Runtime Error

input:

299 89401
176
133
176
183
32
35
32
241
35
291
241
245
90
138
90
177
111
177
206
81
142
81
274
142
292
236
70
141
70
200
141
215
98
215
266
98
224
80
76
51
76
131
51
154
30
122
30
190
63
19
63
222
19
264
100
46
100
188
46
198
148
69
4
69
227
4
263
91
247
91
197
104
197
250
38
21
38
59
21
155
59
280
1...

output:

1 298
176 1
133 1
133 2
183 1
32 1
35 1
35 2
241 1
241 2
291 1
291 2
245 1
90 1
138 1
138 2
177 1
111 1
111 2
206 1
81 1
142 1
142 2
274 1
274 2
292 1
236 1
70 1
141 1
141 2
200 1
200 2
215 1
98 1
98 2
266 1
266 2
224 1
80 1
76 1
51 1
51 2
131 1
131 2
154 1
30 1
122 1
122 2
190 1
63 1
19 1
19 2
222 ...

result:


Subtask #3:

score: 0
Runtime Error

Test #9:

score: 0
Runtime Error

input:

299 598
268
164
75
164
287
75
143
156
88
156
220
88
209
220
239
169
216
169
213
216
218
112
28
112
232
28
84
217
84
187
217
295
15
265
15
102
148
102
266
49
222
49
292
137
223
131
114
131
184
114
173
184
190
130
3
7
3
181
7
214
181
255
73
205
73
159
69
76
69
126
76
175
65
175
208
65
79
31
11
31
64
1...

output:

1 298
268 1
164 1
75 1
75 2
287 1
287 2
143 1
156 1
88 1
88 2
220 1
220 2
209 1
209 2
239 1
169 1
216 1
216 2
213 1
213 2
218 1
112 1
28 1
28 2
232 1
232 2
84 1
217 1
217 2
187 1
187 2
295 1
15 1
265 1
265 2
102 1
148 1
148 2
266 1
49 1
222 1
222 2
292 1
137 1
223 1
131 1
114 1
114 2
184 1
184 2
173...

result:


Subtask #4:

score: 0
Runtime Error

Test #15:

score: 0
Runtime Error

input:

299 89401
11
19
11
68
19
296
68
206
272
52
200
52
80
30
80
110
30
243
110
202
218
183
218
254
102
105
84
93
55
93
290
55
299

output:

1 298
11 1
19 1
19 2
68 1
68 2
296 1
296 2
206 1
272 1
52 1
200 1
200 2
80 1
30 1
30 2
110 1
110 2
243 1
243 2
202 1
218 1
183 1
183 2
254 1
102 1
105 1
84 1
93 1
55 1
55 2
290 1
290 2

result:


Subtask #5:

score: 0
Runtime Error

Test #23:

score: 0
Runtime Error

input:

299 897
140
269
276
1
288
56
138
56
247
123
227
8
227
237
8
152
15
152
207
15
110
207
240
7
174
7
69
131
40
101
40
273
101
291
242
257
33
197
33
233
168
233
286
76
222
76
285
75
241
75
172
241
275
10
65
10
199
13
117
13
278
117
193
219
193
215
95
176
95
217
176
268
134
128
134
173
128
195
16
195
235...

output:

1 1
1 2
1 3
140 1
140 2
288 1
56 1
138 1
138 2
247 1
123 1
227 1
8 1
8 2
237 1
237 2
152 1
15 1
15 2
207 1
207 2
110 1
110 2
240 1
7 1
174 1
174 2
69 1
131 1
40 1
101 1
101 2
273 1
273 2
291 1
242 1
257 1
33 1
197 1
197 2
233 1
168 1
168 2
286 1
76 1
222 1
222 2
285 1
75 1
241 1
241 2
172 1
172 2
27...

result:


Subtask #6:

score: 0
Wrong Answer

Test #32:

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

input:

300 90000
176
296
176
200
64
146
64
200
133
179
89
1
89
1
197
21
160
21
224
92
177
92
224
133
0
0
-1

output:

1 299
176 1
296 1
296 2
200 1
64 1
146 1
146 2
1 1
1 2
1 3
133 1
133 2
179 1
179 2
197 1
21 1
160 1
160 2
224 1
92 1
177 1
177 2
89 1
-1 133
-1 179
-1 89

result:

wrong answer Wrong Answer [5]

Subtask #7:

score: 0
Wrong Answer

Test #58:

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

input:

300 900
201
228
171
1
228
1
171
10
76
10
40
76
147
40
103
45
103
254
45
103
0
0
-1

output:

1 1
1 2
1 3
201 1
201 2
228 1
228 2
171 1
10 1
76 1
76 2
40 1
40 2
147 1
147 2
103 1
45 1
45 2
254 1
254 2
-1 201
-1 228
-1 171

result:

wrong answer Wrong Answer [5]

Subtask #8:

score: 0
Wrong Answer

Test #84:

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

input:

299 598
44
207
41
207
44
0
0
-1

output:

1 298
44 1
207 1
41 1
41 2
-44 207
-41 207
0 0

result:

wrong answer Wrong Answer [7]