QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#432855#8650. Island Hoppingegypt_ioi2024_120 2ms4092kbC++201020b2024-06-07 19:01:392024-06-07 19:01:40

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

input:

3 9
2

output:

1 2
2 -1

result:

wrong answer Wrong Answer [2]

Subtask #2:

score: 0
Wrong Answer

Test #4:

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

input:

299 89401
213
20
253
77
89
93
221
164
256
75
208
152
211
237
298
68
233
5
210
99
283
178
240
52
171
185
281
140
296
205
248
162
230
56
61
254
276
10
119
40
72
139
194
123
269
203
271
129
168
219
286
2
18
23
242
101
216
13
16
113
239
202
293
15
112
86
225
26
115
189
212
150
195
42
199
36
96
265
284
8...

output:

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

result:

wrong answer Wrong Answer [2]

Subtask #3:

score: 0
Wrong Answer

Test #9:

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

input:

299 598
151
66
284
128
188
238
278
70
183
22
141
144
236
134
201
273
296
180
263
62
165
146
277
30
230
140
294
89
110
153
291
24
40
82
127
235
285
9
86
99
147
51
198
243
267
77
162
111
185
53
250
202
244
34
54
158
297
170
174
48
142
68
247
120
160
42
121
253
279
85
123
136
231
25
63
71
237
150
260
1...

output:

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

result:

wrong answer Wrong Answer [2]

Subtask #4:

score: 0
Wrong Answer

Test #15:

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

input:

299 89401
35
171
87
101
122
59
96
297
99
109
144
72
106
172
160
194
196
57
113
152
71
126
268
178
203
250
9
162
273
8
238
275
21
83
179
22
24
264
245
262
289
135
201
270
85
112
229
104
137
236
46
138
265
20
117
164
38
133
269
90
127
251
49
155
212
76
86
228
14
33
187
26
40
185
69
191
260
192
234
282...

output:

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

result:

wrong answer Wrong Answer [2]

Subtask #5:

score: 0
Wrong Answer

Test #23:

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

input:

299 897
269
276
57
125
288
56
107
256
104
137
138
228
236
247
123
169
200
54
227
243
8
86
170
3
132
237
67
98
152
15
37
280
118
207
261
94
110
283
96
182
240
7
192
223
47
174
252
69
133
190
131
150
187
40
46
232
101
249
292
27
83
273
109
284
291
25
161
242
211
255
257
12
33
79
197
221
272
230
233
29...

output:

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

result:

wrong answer Wrong Answer [2]

Subtask #6:

score: 0
Wrong Answer

Test #32:

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

input:

300 90000
179
89
197
271
290
10
21
139
230
253
284
88
109
160
229
231
239
262
270
51
98
108
121
201
217
224
236
243
274
15
92
99
101
102
124
151
171
172
185
248
256
264
267
22
32
36
63
80
114
135
143
155
164
168
177
196
212
218
238
26
30
50
78
79
83
110
120
131
148
178
198
208
235
249
250
269
276
28...

output:

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

result:

wrong answer Wrong Answer [2]

Subtask #7:

score: 0
Wrong Answer

Test #58:

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

input:

300 900
228
171
222
10
73
109
137
37
76
162
215
258
274
298
40
53
125
182
199
213
221
266
271
275
283
33
38
85
120
147
156
158
178
211
218
229
240
260
287
31
71
77
90
99
103
139
140
155
157
165
174
185
194
223
291
26
45
52
68
84
94
95
102
128
129
148
180
181
197
210
262
284
290
8
11
14
25
41
56
88
1...

output:

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

result:

wrong answer Wrong Answer [2]

Subtask #8:

score: 0
Wrong Answer

Test #84:

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

input:

299 598
94
224
245
181
203
240
247
84
92
246
261
270
15
20
34
172
276
8
14
28
30
169
217
127
139
170
189
206
233
289
113
131
155
225
236
253
285
59
152
176
212
220
227
238
274
12
73
87
106
150
194
258
275
277
294
295
35
65
78
95
97
117
126
132
173
235
244
257
5
27
74
93
109
137
156
180
190
219
254
2...

output:

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

result:

wrong answer Wrong Answer [2]