QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#449422#8650. Island HoppingDitaMirika#2 1ms4092kbC++231.1kb2024-06-21 09:58:152024-06-21 09:58:16

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 2
Accepted

Test #1:

score: 2
Accepted
time: 0ms
memory: 3800kb

input:

3 9
3
2
3
0
1
2
0
1

output:

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

result:

ok 

Test #2:

score: 0
Accepted
time: 1ms
memory: 3880kb

input:

3 9
3
2
3
0
1
2
0
1

output:

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

result:

ok 

Test #3:

score: 0
Accepted
time: 0ms
memory: 3960kb

input:

3 9
2
3
2
0
1
3
0
1

output:

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

result:

ok 

Subtask #2:

score: 0
Wrong Answer

Test #4:

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

input:

299 89401
79
213
1
20
89
213
1
0
0
1
253
77
79
77
93
253
79
0
1
0
0
77
256
93
208
211
256
93
0
208
77
0
0
208
237
68
211
68
210
237
211
0
208
0
0
68
283
210
237
0
240
171
283
68
0
210
0
240
281
140
171
140
248
281
162
171
0
240
0
61
248
-1

output:

1 1
1 2
213 1
1 3
20 1
20 2
20 3
-1 79
-1 213
79 1
79 2
253 1
253 2
79 3
77 1
77 2
77 3
-79 253
253 3
-77 253
-77 93
93 1
93 2
256 1
93 3
208 1
208 2
208 3
-93 256
256 2
256 3
-208 256
-208 211
211 1
211 2
237 1
237 2
211 3
68 1
68 2
68 3
-211 237
237 3
-68 237
-68 210
210 1
210 2
283 1
210 3
-210 2...

result:

wrong answer Wrong Answer [5]

Subtask #3:

score: 0
Wrong Answer

Test #9:

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

input:

299 598
43
151
1
66
43
0
0
1
66
128
66
278
43
0
128
1
0
128
0
183
141
278
66
0
128
0
183
236
141
201
236
296
141
0
201
183
0
201
0
263
165
296
165
263
277
230
296
0
201
0
165
277
294
110
165
0
-1

output:

1 1
1 2
151 1
1 3
66 1
-1 43
-1 151
43 1
43 2
43 3
128 1
128 2
128 3
-43 66
66 2
66 3
-66 128
278 1
-128 278
278 2
183 1
183 2
278 3
-183 278
183 3
-141 183
141 1
141 2
236 1
141 3
201 1
201 2
201 3
-141 236
236 2
236 3
-201 236
296 1
-201 296
296 2
263 1
263 2
296 3
165 1
165 2
165 3
165 4
-263 296...

result:

wrong answer Wrong Answer [5]

Subtask #4:

score: 0
Wrong Answer

Test #15:

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

input:

299 89401
29
35
1
171
1
87
35
96
1
0
0
0
1
122
29
35
0
59
99
122
1
0
29
0
59
72
99
122
0
194
57
72
57
194
268
72
0
99
0
57
0
250
9
268
9
8
250
83
268
0
8
9
0
8
0
-1

output:

1 1
1 2
35 1
1 3
171 1
1 4
87 1
87 2
87 3
-1 29
-1 35
-1 171
29 1
29 2
122 1
29 3
-29 122
122 2
59 1
59 2
122 3
-59 122
59 3
-59 99
99 1
99 2
72 1
99 3
-72 99
72 2
194 1
194 2
72 3
57 1
57 2
57 3
-72 194
194 3
-57 194
268 1
-57 268
268 2
250 1
250 2
268 3
9 1
9 2
9 3
9 4
-250 268
250 3
8 1
-9 250
83...

result:

wrong answer Wrong Answer [5]

Subtask #5:

score: 0
Wrong Answer

Test #23:

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

input:

299 897
140
269
1
276
1
57
256
276
1
0
0
0
1
288
56
140
56
138
288
140
0
1
0
0
56
247
123
138
123
227
247
8
138
0
56
0
227
-1

output:

1 1
1 2
269 1
1 3
276 1
1 4
57 1
57 2
57 3
-1 140
-1 269
-1 276
140 1
140 2
288 1
288 2
140 3
56 1
56 2
56 3
-140 288
288 3
-56 288
-56 138
138 1
138 2
247 1
247 2
138 3
123 1
123 2
123 3
123 4
-138 247
247 3
-123 247
8 1
-123 138

result:

wrong answer Wrong Answer [5]

Subtask #6:

score: 0
Wrong Answer

Test #32:

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

input:

300 90000
133
179
1
89
133
0
0
1
89
290
133
139
290
133
0
0
253
88
89
1
0
133
0
243
253
89
0
88
171
243
185
135
164
243
135
185
250
150
164
243
0
0
88
50
79
185
50
164
258
79
152
185
0
0
135
100
180
250
57
135
-1

output:

1 1
1 2
179 1
1 3
89 1
-1 133
-1 179
133 1
133 2
133 3
290 1
133 4
139 1
139 2
-89 133
-133 290
89 2
253 1
253 2
89 3
-89 253
253 3
-88 253
88 1
88 2
88 3
-88 243
243 1
243 2
171 1
243 3
185 1
185 2
185 3
243 4
135 1
135 2
135 3
135 4
135 5
-171 243
-185 243
171 2
164 1
164 2
164 3
185 4
50 1
50 2
5...

result:

wrong answer Wrong Answer [5]

Subtask #7:

score: 0
Wrong Answer

Test #58:

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

input:

300 900
201
228
1
171
10
137
228
1
0
0
1
228
171
222
73
109
228
10
76
171
40
137
199
228
0
0
162
171
0
0
76
0
-1

output:

1 1
1 2
228 1
1 3
171 1
171 2
171 3
171 4
-1 201
-1 228
201 1
201 2
228 2
228 3
222 1
222 2
222 3
228 4
10 1
10 2
10 3
10 4
10 5
10 6
-171 228
-222 228
137 1
137 2
-10 171
-137 171
40 1
-10 76
-10 137

result:

wrong answer Wrong Answer [5]

Subtask #8:

score: 0
Wrong Answer

Test #84:

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

input:

299 598
86
94
1
224
94
240
247
1
0
0
1
94
224
245
94
86
0
0
84
92
224
224
0
0
15
20
240
15
14
92
217
20
240
0
0
172
240
30
127
172
0
30
84
127
30
0
233
30
84
0
0
285
127
172
0
212
73
285
238
12
150
285
12
238
150
285
0
0
95
73
0
95
212
285
0
212
35
173
238
35
150
173
238
0
0
-1

output:

1 1
1 2
94 1
1 3
224 1
224 2
224 3
224 4
-1 86
-1 94
86 1
86 2
94 2
94 3
245 1
94 4
-94 224
-94 245
240 1
240 2
240 3
247 1
-224 240
-224 247
92 1
92 2
92 3
240 4
15 1
15 2
15 3
15 4
15 5
-84 240
-92 240
84 1
84 2
84 3
30 1
30 2
-84 172
172 1
172 2
172 3
127 1
-30 172
30 3
233 1
30 4
-30 127
-30 233...

result:

wrong answer Wrong Answer [5]