QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#430429#8650. Island Hoppingegypt_ioi2024_04#0 6ms10096kbC++202.1kb2024-06-03 20:09:372024-06-03 20:09:38

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

3 9
2
3

output:

1 2
2 1
2 -1

result:

wrong answer Wrong Answer [2]

Subtask #2:

score: 0
Wrong Answer

Test #4:

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

input:

299 89401
213
1
0
20
89
286
2
0
129
271
244
3
0
6
29
227
4
0
148
69
233
5
0
178
52
3
277
7
0
73
147
83
8
0
50
48
149
9
0
145
149
276
10
0
61
162
278
11
0
41
163
226
12
0
29
6
239
13
0
202
112
268
14
0
94
97
293
15
0
26
212
113
16
0
23
18
159
17
0
34
159
219
18
0
101
16
222
19
0
190
63
1
59
21
0
155
...

output:

1 2
213 1
-1 213
1 3
20 1
2 2
286 1
-2 286
2 3
129 1
3 2
244 1
-3 244
3 3
6 1
4 2
227 1
-4 227
4 3
148 1
5 2
233 1
-5 233
5 3
178 1
6 3
7 2
277 1
-7 277
7 3
73 1
8 2
83 1
-8 83
8 3
50 1
9 2
149 1
-9 149
9 3
145 1
10 2
276 1
-10 276
10 3
61 1
11 2
278 1
-11 278
11 3
41 1
12 2
226 1
-12 226
12 3
29 1
...

result:

wrong answer Wrong Answer [1]

Subtask #3:

score: 0
Wrong Answer

Test #9:

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

input:

299 598
151
1
0
66
43
119
2
0
124
36
130
3
0
181
7
139
4
0
129
115
109
5
0
55
50
176
6
0
107
157
181
214
138
8
0
18
103
235
9
0
82
24
197
10
0
100
44
64
11
0
79
31
210
12
0
71
25
271
13
0
178
155
196
14
0
37
196
295
15
0
102
148
251
16
0
46
35
145
17
0
133
47
8
270
19
0
46
171
259
20
0
177
227
283
2...

output:

1 2
151 1
-1 151
1 3
66 1
2 2
119 1
-2 119
2 3
124 1
3 2
130 1
-3 130
3 3
181 1
4 2
139 1
-4 139
4 3
129 1
5 2
109 1
-5 109
5 3
55 1
6 2
176 1
-6 176
6 3
107 1
7 2
181 2
8 2
138 1
-8 138
8 3
18 1
9 2
235 1
-9 235
9 3
82 1
10 2
197 1
-10 197
10 3
100 1
11 2
64 1
-11 64
11 3
79 1
12 2
210 1
-12 210
12...

result:

wrong answer Wrong Answer [1]

Subtask #4:

score: 0
Wrong Answer

Test #15:

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

input:

299 89401
35
1
0
171
1
0
87
35
230
2
0
163
230
181
3
0
7
166
266
4
0
70
54
159
5
0
77
132
176
6
0
217
75
3
83
8
0
22
83
250
9
0
83
141
10
0
136
141
68
19
224
12
0
125
63
215
13
0
119
154
228
14
0
49
228
221
15
0
129
131
50
53
239
17
0
37
143
107
18
0
65
5
68
296
269
20
0
104
112
275
21
0
245
264
8
2...

output:

1 2
35 1
-1 35
1 3
171 1
-1 171
1 4
87 1
2 2
230 1
-2 230
2 3
163 1
3 2
181 1
-3 181
3 3
7 1
4 2
266 1
-4 266
4 3
70 1
5 2
159 1
-5 159
5 3
77 1
6 2
176 1
-6 176
6 3
217 1
7 3
8 2
83 1
-8 83
8 3
22 1
9 2
250 1
-9 250
9 3
10 2
141 1
-10 141
10 3
136 1
11 2
68 1
12 2
224 1
-12 224
12 3
125 1
13 2
215 ...

result:

wrong answer Wrong Answer [1]

Subtask #5:

score: 0
Wrong Answer

Test #23:

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

input:

299 897
269
1
0
276
1
0
57
256
121
2
0
87
34
86
3
0
54
86
262
4
0
55
214
244
5
0
84
159
146
6
0
245
146
240
7
0
69
131
237
8
0
123
227
281
9
0
48
91
275
10
0
172
241
254
11
0
38
41
272
12
0
161
211
199
13
0
65
10
165
14
0
177
165
207
15
0
110
207
235
16
0
147
171
225
17
0
49
144
231
18
0
38
231
156
...

output:

1 2
269 1
-1 269
1 3
276 1
-1 276
1 4
57 1
2 2
121 1
-2 121
2 3
87 1
3 2
86 1
-3 86
3 3
54 1
4 2
262 1
-4 262
4 3
55 1
5 2
244 1
-5 244
5 3
84 1
6 2
146 1
-6 146
6 3
245 1
7 2
240 1
-7 240
7 3
69 1
8 2
237 1
-8 237
8 3
123 1
9 2
281 1
-9 281
9 3
48 1
10 2
275 1
-10 275
10 3
172 1
11 2
254 1
-11 254
...

result:

wrong answer Wrong Answer [1]

Subtask #6:

score: 0
Wrong Answer

Test #32:

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

input:

300 90000
179
1
0
89
133
47
82
165
65
283
4
0
48
128
40
5
0
59
5
0
11
29
35
6
0
41
6
0
132
41
234
7
0
18
234
199
86
299
54
231
10
0
271
10
0
51
109
5
112
12
0
131
12
0
17
131
277
13
0
48
266
126
14
0
178
14
0
29
5
231
118
77
196
99
31
45
210
19
0
55
94
181
20
0
223
20
0
93
62
197
21
0
229
21
0
98
22...

output:

1 2
179 1
-1 179
1 3
89 1
2 2
47 1
3 2
165 1
4 2
283 1
-4 283
4 3
48 1
5 2
40 1
-5 40
5 3
59 1
-5 59
5 4
11 1
6 2
35 1
-6 35
6 3
41 1
-6 41
6 4
132 1
7 2
234 1
-7 234
7 3
18 1
8 2
199 1
9 2
299 1
10 2
231 1
-10 231
10 3
271 1
-10 271
10 4
51 1
11 3
12 2
112 1
-12 112
12 3
131 1
-12 131
12 4
17 1
13 ...

result:

wrong answer Wrong Answer [1]

Subtask #7:

score: 0
Wrong Answer

Test #58:

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

input:

300 900
228
1
0
171
10
262
88
104
3
0
101
97
183
4
0
236
4
0
61
34
98
5
0
269
5
0
58
96
138
6
0
163
70
141
7
0
13
141
80
8
0
290
8
0
112
143
51
39
171
137
180
11
0
206
11
0
36
43
203
12
0
280
12
0
151
69
7
168
91
166
132
89
110
233
17
0
131
193
293
18
0
57
119
191
19
0
108
32
30
106
261
21
0
267
21
...

output:

1 2
228 1
-1 228
1 3
171 1
2 2
262 1
3 2
104 1
-3 104
3 3
101 1
4 2
183 1
-4 183
4 3
236 1
-4 236
4 4
61 1
5 2
98 1
-5 98
5 3
269 1
-5 269
5 4
58 1
6 2
138 1
-6 138
6 3
163 1
7 2
141 1
-7 141
7 3
13 1
8 2
80 1
-8 80
8 3
290 1
-8 290
8 4
112 1
9 2
51 1
10 2
171 2
11 2
180 1
-11 180
11 3
206 1
-11 206...

result:

wrong answer Wrong Answer [1]

Subtask #8:

score: 0
Wrong Answer

Test #84:

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

input:

299 598
94
1
0
224
94
228
2
0
42
57
166
3
0
234
23
138
83
262
5
0
296
5
0
77
110
129
6
0
158
6
0
40
129
55
51
206
8
0
28
20
64
9
0
105
9
0
32
24
262
209
11
0
186
26
150
35
223
13
0
122
223
92
15
92
20
68
38
254
187
263
18
0
26
175
31
91
28
189
33
148
197
45
160
222
105
48
231
18
180
43
8
196
29
0
23...

output:

1 2
94 1
-1 94
1 3
224 1
2 2
228 1
-2 228
2 3
42 1
3 2
166 1
-3 166
3 3
234 1
4 2
138 1
5 2
262 1
-5 262
5 3
296 1
-5 296
5 4
77 1
6 2
129 1
-6 129
6 3
158 1
-6 158
6 4
40 1
7 2
55 1
8 2
206 1
-8 206
8 3
28 1
9 2
64 1
-9 64
9 3
105 1
-9 105
9 4
32 1
10 2
11 2
209 1
-11 209
11 3
186 1
12 2
150 1
13 2...

result:

wrong answer Wrong Answer [1]