QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#430358#8650. Island Hoppingegypt_ioi2024b_04#2 4ms4028kbC++231.3kb2024-06-03 18:36:422024-06-03 18:36:43

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 2
Accepted

Test #1:

score: 2
Accepted
time: 1ms
memory: 3760kb

input:

3 9
3
3
0
0

output:

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

result:

ok 

Test #2:

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

input:

3 9
3
3
0
0

output:

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

result:

ok 

Test #3:

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

input:

3 9
2
3
0
0

output:

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

result:

ok 

Subtask #2:

score: 0
Wrong Answer

Test #4:

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

input:

299 89401
79
242
192
69
99
29
272
54
67
72
163
196
216
60
225
101
43
23
63
89
38
97
101
167
160
212
78
143
226
122
45
35
55
159
241
199
116
250
157
119
163
96
58
121
109
100
64
50
114
83
76
178
105
83
58
230
118
17
21
109
162
187
190
127
181
107
170
210
148
141
137
139
147
84
152
80
93
153
253
224
1...

output:

1 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 2
24 1
25 1
26 1
27 1
28 1
29 2
30 1
31 1
32 1
33 1
34 1
35 2
36 1
37 1
38 2
39 1
40 1
41 1
42 1
43 2
44 1
45 2
46 1
47 1
48 1
49 1
50 2
51 1
52 1
53 1
54 2
55 2
56 1
57 1
58 3
59 1
60 2
61 1
62 1...

result:

wrong answer Wrong Answer [5]

Subtask #3:

score: 0
Wrong Answer

Test #9:

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

input:

299 598
43
91
7
115
50
157
181
106
147
44
31
150
195
113
265
171
47
103
35
199
27
70
274
82
71
101
281
112
118
140
79
33
245
158
46
124
196
83
81
127
204
160
66
100
203
171
133
170
222
55
99
72
185
244
117
249
179
135
93
228
90
146
136
11
175
128
92
142
76
238
150
240
205
225
164
126
185
192
208
189...

output:

1 1
2 1
3 1
4 1
5 1
6 1
7 2
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 2
28 1
29 1
30 1
31 2
32 1
33 2
34 1
35 2
36 1
37 1
38 1
39 1
40 1
41 1
42 1
43 2
44 2
45 1
46 2
47 2
48 1
49 1
50 2
51 1
52 1
53 1
54 1
55 2
56 1
57 1
58 1
59 1
60 1
61 1
62 1...

result:

wrong answer Wrong Answer [5]

Subtask #4:

score: 0
Wrong Answer

Test #15:

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

input:

299 89401
29
153
166
54
65
75
166
9
250
88
19
193
154
26
73
271
231
44
68
265
264
83
111
179
41
191
116
177
122
80
263
48
86
43
1
61
143
90
67
187
151
89
62
108
92
117
169
128
228
53
150
200
56
70
93
147
194
190
99
134
121
199
125
173
107
195
259
296
185
134
152
99
205
225
217
155
132
226
244
200
15...

output:

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

result:

wrong answer Wrong Answer [5]

Subtask #5:

score: 0
Wrong Answer

Test #23:

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

input:

299 897
140
39
67
214
234
122
174
227
206
65
41
211
117
51
152
195
28
143
127
64
144
119
201
271
109
88
109
103
210
36
213
42
197
87
186
287
98
41
87
101
231
70
183
116
78
187
190
91
144
143
274
153
116
86
214
138
256
120
191
206
88
157
156
293
199
73
280
80
131
167
103
127
202
141
241
222
159
298
2...

output:

1 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 2
29 1
30 1
31 1
32 1
33 1
34 1
35 1
36 2
37 1
38 1
39 2
40 1
41 3
42 2
43 1
44 1
45 1
46 1
47 1
48 1
49 1
50 1
51 2
52 1
53 1
54 1
55 1
56 1
57 1
58 1
59 1
60 1
61 1
62 1...

result:

wrong answer Wrong Answer [5]

Subtask #6:

score: 0
Wrong Answer

Test #32:

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

input:

300 90000
133
82
65
266
29
24
28
86
186
109
29
105
128
117
108
247
131
234
94
141
160
26
219
268
40
226
138
234
126
80
45
102
67
111
6
148
70
119
62
25
6
96
295
46
292
79
82
128
292
164
109
142
87
299
94
249
180
227
5
288
71
93
99
146
165
68
282
73
189
59
283
73
66
140
106
123
118
111
145
101
178
29...

output:

1 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 2
25 1
26 2
27 1
28 2
29 3
30 1
31 1
32 1
33 1
34 1
35 1
36 1
37 1
38 1
39 1
40 2
41 1
42 1
43 1
44 1
45 2
46 2
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 2...

result:

wrong answer Wrong Answer [5]

Subtask #7:

score: 0
Wrong Answer

Test #58:

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

input:

300 900
201
88
97
35
96
70
60
23
46
76
43
69
141
95
159
264
196
119
32
176
235
152
80
67
148
31
170
107
244
106
38
108
77
61
61
43
109
174
51
76
197
288
190
149
103
51
116
87
179
127
189
56
156
124
276
194
119
96
212
270
250
169
81
299
236
122
145
115
151
163
156
142
215
39
220
199
182
234
276
23
83...

output:

1 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 2
24 1
25 1
26 1
27 1
28 1
29 1
30 1
31 2
32 2
33 1
34 1
35 2
36 1
37 1
38 2
39 1
40 1
41 1
42 1
43 3
44 1
45 1
46 2
47 1
48 1
49 1
50 1
51 3
52 1
53 1
54 1
55 1
56 2
57 1
58 1
59 1
60 2
61 3
62 1...

result:

wrong answer Wrong Answer [3]

Subtask #8:

score: 0
Wrong Answer

Test #84:

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

input:

299 598
86
79
49
124
257
51
214
20
50
177
200
238
66
15
92
38
229
175
193
28
148
45
234
32
231
175
126
189
142
127
91
105
148
246
150
62
109
68
54
129
207
57
136
207
197
53
215
231
166
186
55
64
207
159
128
148
90
100
113
140
104
159
100
52
190
223
85
89
109
89
128
80
95
173
202
164
110
106
42
128
3...

output:

1 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 2
16 1
17 1
18 1
19 1
20 2
21 1
22 1
23 1
24 1
25 1
26 1
27 1
28 2
29 1
30 1
31 1
32 2
33 1
34 1
35 1
36 1
37 1
38 2
39 1
40 1
41 1
42 1
43 1
44 1
45 2
46 1
47 1
48 1
49 2
50 2
51 2
52 1
53 2
54 2
55 2
56 1
57 2
58 1
59 1
60 1
61 1
62 2...

result:

wrong answer Wrong Answer [3]