QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#430453#8650. Island Hoppingegypt_ioi2024_04#2 3ms8092kbC++202.1kb2024-06-03 20:32:332024-06-03 20:32:33

详细

Subtask #1:

score: 2
Accepted

Test #1:

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

input:

3 9
3
1
0
2
3
3
2
0

output:

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

result:

ok 

Test #2:

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

input:

3 9
3
1
0
2
3
3
2
0

output:

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

result:

ok 

Test #3:

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

input:

3 9
2
1
0
3
2
3
2
0

output:

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

result:

ok 

Subtask #2:

score: 0
Wrong Answer

Test #4:

score: 4
Accepted
time: 0ms
memory: 5892kb

input:

299 89401
79
1
0
213
1
0
242
2
0
286
2
0
192
3
0
244
3
0
69
4
0
227
4
0
99
5
0
233
5
0
29
6
0
244
6
0
272
7
0
277
7
0
54
8
0
83
8
0
67
9
0
149
9
0
72
10
0
276
10
0
163
11
0
278
11
0
196
12
0
226
12
0
216
13
0
239
13
0
60
14
0
268
14
0
225
15
0
293
15
0
101
16
0
113
16
0
43
17
0
159
17
0
23
18
0
219
...

output:

1 1
79 1
-1 79
1 2
213 1
-1 213
2 1
242 1
-2 242
2 2
286 1
-2 286
3 1
192 1
-3 192
3 2
244 1
-3 244
4 1
69 1
-4 69
4 2
227 1
-4 227
5 1
99 1
-5 99
5 2
233 1
-5 233
6 1
29 1
-6 29
6 2
244 2
-6 244
7 1
272 1
-7 272
7 2
277 1
-7 277
8 1
54 1
-8 54
8 2
83 1
-8 83
9 1
67 1
-9 67
9 2
149 1
-9 149
10 1
72 ...

result:

ok 

Test #5:

score: -4
Wrong Answer
time: 0ms
memory: 5916kb

input:

300 90000
15
1
0
220
1
0
17
2
0
130
2
0
10
3
0
200
3
0
153
4
0
269
4
0
43
5
0
147
5
0
12
6
0
36
6
0
32
7
0
50
7
0
178
8
0
218
8
0
14
9
0
181
9
0
174
10
0
79
11
0
208
11
0
261
12
0
44
13
0
260
13
0
295
14
0
199
15
0
229
16
0
288
16
0
53
17
0
256
18
0
266
18
0
66
19
0
236
19
0
159
20
0
295
20
0
190
21...

output:

1 1
15 1
-1 15
1 2
220 1
-1 220
2 1
17 1
-2 17
2 2
130 1
-2 130
3 1
10 1
-3 10
3 2
200 1
-3 200
4 1
153 1
-4 153
4 2
269 1
-4 269
5 1
43 1
-5 43
5 2
147 1
-5 147
6 1
12 1
-6 12
6 2
36 1
-6 36
7 1
32 1
-7 32
7 2
50 1
-7 50
8 1
178 1
-8 178
8 2
218 1
-8 218
9 1
14 1
-9 14
9 2
181 1
-9 181
10 2
174 1
-...

result:

wrong answer Wrong Answer [5]

Subtask #3:

score: 0
Wrong Answer

Test #9:

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

input:

299 598
43
1
0
151
1
0
91
2
0
119
2
0
7
3
0
130
3
0
115
4
0
139
4
0
50
5
0
109
5
0
157
6
0
176
6
0
181
7
0
106
8
0
138
8
0
147
9
0
235
9
0
44
10
0
197
10
0
31
11
0
64
11
0
150
12
0
210
12
0
195
13
0
271
13
0
113
14
0
196
14
0
265
15
0
295
15
0
171
16
0
251
16
0
47
17
0
145
17
0
103
18
0
106
18
0
35
...

output:

1 1
43 1
-1 43
1 2
151 1
-1 151
2 1
91 1
-2 91
2 2
119 1
-2 119
3 1
7 1
-3 7
3 2
130 1
-3 130
4 1
115 1
-4 115
4 2
139 1
-4 139
5 1
50 1
-5 50
5 2
109 1
-5 109
6 1
157 1
-6 157
6 2
176 1
-6 176
7 2
181 1
-7 181
8 1
106 1
-8 106
8 2
138 1
-8 138
9 1
147 1
-9 147
9 2
235 1
-9 235
10 1
44 1
-10 44
10 2...

result:

wrong answer Wrong Answer [3]

Subtask #4:

score: 0
Wrong Answer

Test #15:

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

input:

299 89401
29
1
0
35
1
0
153
2
0
230
2
0
166
3
0
181
3
0
54
4
0
266
4
0
65
5
0
159
5
0
75
6
0
176
6
0
166
7
0
241
7
0
9
8
0
83
8
0
250
9
0
88
10
0
141
10
0
19
11
0
68
19
193
12
0
224
12
0
154
13
0
215
13
0
26
14
0
228
14
0
73
15
0
221
15
0
271
16
0
50
53
231
17
0
239
17
0
44
18
0
107
18
0
68
19
0
265...

output:

1 1
29 1
-1 29
1 2
35 1
-1 35
2 1
153 1
-2 153
2 2
230 1
-2 230
3 1
166 1
-3 166
3 2
181 1
-3 181
4 1
54 1
-4 54
4 2
266 1
-4 266
5 1
65 1
-5 65
5 2
159 1
-5 159
6 1
75 1
-6 75
6 2
176 1
-6 176
7 1
166 2
-7 166
7 2
241 1
-7 241
8 1
9 1
-8 9
8 2
83 1
-8 83
9 2
250 1
-9 250
10 1
88 1
-10 88
10 2
141 1...

result:

wrong answer Wrong Answer [1]

Subtask #5:

score: 0
Wrong Answer

Test #23:

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

input:

299 897
140
1
0
269
1
0
39
2
0
121
2
0
67
3
0
86
3
0
214
4
0
262
4
0
234
5
0
244
5
0
122
6
0
146
6
0
174
7
0
240
7
0
227
8
0
237
8
0
206
9
0
281
9
0
65
10
0
275
10
0
41
11
0
254
11
0
211
12
0
272
12
0
117
13
0
199
13
0
51
14
0
165
14
0
152
15
0
207
15
0
195
16
0
235
16
0
28
17
0
225
17
0
143
18
0
23...

output:

1 1
140 1
-1 140
1 2
269 1
-1 269
2 1
39 1
-2 39
2 2
121 1
-2 121
3 1
67 1
-3 67
3 2
86 1
-3 86
4 1
214 1
-4 214
4 2
262 1
-4 262
5 1
234 1
-5 234
5 2
244 1
-5 244
6 1
122 1
-6 122
6 2
146 1
-6 146
7 1
174 1
-7 174
7 2
240 1
-7 240
8 1
227 1
-8 227
8 2
237 1
-8 237
9 1
206 1
-9 206
9 2
281 1
-9 281
...

result:

wrong answer Wrong Answer [1]

Subtask #6:

score: 0
Wrong Answer

Test #32:

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

input:

300 90000
133
1
0
179
1
0
82
2
0
47
82
65
3
0
165
65
266
4
0
283
4
0
29
5
0
40
5
0
24
6
0
35
6
0
28
7
0
234
7
0
86
8
0
199
86
186
9
0
299
54
109
10
0
231
10
0
29
11
0
221
11
0
105
12
0
112
12
0
128
13
0
277
13
0
117
14
0
126
14
0
108
15
0
231
108
247
16
0
118
77
131
12
234
18
0
7
18
-1

output:

1 1
133 1
-1 133
1 2
179 1
-1 179
2 1
82 1
-2 82
2 2
47 1
3 1
65 1
-3 65
3 2
165 1
4 1
266 1
-4 266
4 2
283 1
-4 283
5 1
29 1
-5 29
5 2
40 1
-5 40
6 1
24 1
-6 24
6 2
35 1
-6 35
7 1
28 1
-7 28
7 2
234 1
-7 234
8 1
86 1
-8 86
8 2
199 1
9 1
186 1
-9 186
9 2
299 1
10 1
109 1
-10 109
10 2
231 1
-10 231
1...

result:

wrong answer Wrong Answer [5]

Subtask #7:

score: 0
Wrong Answer

Test #58:

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

input:

300 900
201
1
0
228
1
0
88
2
0
262
88
97
3
0
104
3
0
35
4
0
183
4
0
96
5
0
98
5
0
70
6
0
138
6
0
60
7
0
141
7
0
23
8
0
80
8
0
46
9
0
51
39
76
10
0
171
10
0
43
11
0
180
11
0
69
12
0
203
12
0
141
13
0
173
13
0
95
14
0
168
91
159
15
0
166
132
264
16
0
89
110
196
17
0
233
17
0
119
18
0
293
18
0
32
19
0
...

output:

1 1
201 1
-1 201
1 2
228 1
-1 228
2 1
88 1
-2 88
2 2
262 1
3 1
97 1
-3 97
3 2
104 1
-3 104
4 1
35 1
-4 35
4 2
183 1
-4 183
5 1
96 1
-5 96
5 2
98 1
-5 98
6 1
70 1
-6 70
6 2
138 1
-6 138
7 1
60 1
-7 60
7 2
141 1
-7 141
8 1
23 1
-8 23
8 2
80 1
-8 80
9 1
46 1
-9 46
9 2
51 1
10 1
76 1
-10 76
10 2
171 1
-...

result:

wrong answer Wrong Answer [5]

Subtask #8:

score: 0
Wrong Answer

Test #84:

score: 0
Wrong Answer
time: 3ms
memory: 7904kb

input:

299 598
86
1
0
94
1
0
79
2
0
228
2
0
49
3
0
166
3
0
124
4
0
138
83
257
5
0
262
5
0
51
6
0
129
6
0
214
7
0
55
51
20
8
0
206
8
0
50
9
0
64
9
0
177
10
0
262
77
200
11
0
209
11
0
238
12
0
150
35
66
13
0
223
13
0
15
14
0
92
15
92
15
0
38
16
0
68
38
229
17
0
254
187
175
18
0
263
18
0
193
19
0
31
91
28
20
...

output:

1 1
86 1
-1 86
1 2
94 1
-1 94
2 1
79 1
-2 79
2 2
228 1
-2 228
3 1
49 1
-3 49
3 2
166 1
-3 166
4 1
124 1
-4 124
4 2
138 1
5 1
257 1
-5 257
5 2
262 1
-5 262
6 1
51 1
-6 51
6 2
129 1
-6 129
7 1
214 1
-7 214
7 2
55 1
8 1
20 1
-8 20
8 2
206 1
-8 206
9 1
50 1
-9 50
9 2
64 1
-9 64
10 1
177 1
-10 177
10 2
2...

result:

wrong answer Wrong Answer [5]