QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#177645#6340. TourismZ_301#0 557ms55476kbC++172.6kb2023-09-13 08:27:362024-07-04 02:42:27

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

166 249 224
158 52
52 82
158 36
117 158
119 117
5 82
158 18
22 36
82 143
105 36
22 152
36 92
117 2
123 158
5 134
119 89
31 119
92 48
105 149
149 17
108 31
134 50
3 52
63 158
3 51
42 22
17 10
103 158
50 122
92 85
50 78
117 159
36 20
143 115
158 83
20 4
142 22
23 3
96 10
19 134
8 10
151 92
65 108
89 5...

output:

67
40
107
93
110
124
1
24
122
108
70
66
83
96
25
113
86
60
1
49
86
103
66
33
1
1
76
108
54
92
46
116
73
1
93
1
108
85
25
95
124
69
85
116
63
124
104
68
34
1
99
121
63
56
96
86
1
69
108
48
60
124
1
70
22
120
105
86
36
16
121
107
120
1
34
87
124
1
98
16
122
103
1
105
124
73
105
98
64
95
28
86
95
111
6...

result:

wrong answer 2nd numbers differ - expected: '97', found: '40'

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 0
Wrong Answer

Test #56:

score: 0
Wrong Answer
time: 428ms
memory: 55476kb

input:

55321 88650 75523
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51...

output:

1
55319
55313
55306
55319
53676
55306
1
55306
55319
1
1
55318
55319
55311
55311
55319
1
1
55319
55318
55317
55306
55319
1
55318
1
55318
55319
55319
55319
1
55319
55319
55306
55319
55297
55319
55319
55264
55306
1
55318
55186
55204
1
55319
55319
55297
55318
55319
55318
55319
1
55319
55306
55210
1
5531...

result:

wrong answer 1st numbers differ - expected: '55319', found: '1'

Subtask #4:

score: 0
Wrong Answer

Test #69:

score: 18
Accepted
time: 322ms
memory: 53080kb

input:

54738 54525 1797
45211 4527
4527 43609
4527 19876
16325 43609
32183 4527
16325 32579
43609 25554
32183 38972
45211 53953
16325 19810
10881 19810
45211 12698
27967 19810
25554 46338
51894 45211
25388 16325
512 25554
43609 7820
10206 512
30021 32183
48647 43609
46338 44138
16766 7820
10023 53953
19810...

output:

276
238
198
214
294
240
233
266
184
241
207
241
256
225
215
222
190
269
221
242
287
225
215
252
273
203
281
186
259
195
152
183
206
241
218
205
241
233
194
239
258
244
267
339
224
205
242
202
260
275
173
243
178
228
251
242
239
231
203
249
277
215
202
169
243
258
208
306
232
231
211
224
249
256
203
...

result:

ok 1797 numbers

Test #70:

score: -18
Wrong Answer
time: 384ms
memory: 52624kb

input:

59284 89368 1930
4029 716
1741 4029
14542 4029
48937 4029
716 24494
29506 1741
4029 3097
2898 716
3097 8627
2898 46025
29506 15319
716 12015
1741 5566
8627 58178
2898 14837
7742 1741
21507 24494
20151 24494
48937 9926
55162 7742
32033 14837
2898 27435
12292 8627
24972 58178
55074 48937
45787 21507
1...

output:

369
311
313
353
339
335
284
364
434
382
298
243
268
306
282
383
400
371
343
357
399
329
285
264
350
350
372
391
378
398
281
257
419
308
307
462
379
357
327
356
323
427
360
368
312
394
268
310
310
324
275
312
279
347
298
281
314
291
447
257
320
269
343
311
397
279
332
319
238
268
369
334
301
321
390
...

result:

wrong answer 1276th numbers differ - expected: '289', found: '86'

Subtask #5:

score: 0
Wrong Answer

Test #102:

score: 0
Wrong Answer
time: 557ms
memory: 54524kb

input:

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

output:

41024
1
39914
17910
39404
40178
1
29300
18235
1
32861
42464
29044
35968
24137
7847
41043
35265
44770
36761
30989
8364
13902
35077
43938
21200
43577
1
1
18082
35642
1
28894
1
23259
31841
41546
30665
19762
41081
27963
8688
41166
24623
1
18786
29659
27818
42423
40461
30971
28924
1
25815
6857
40380
3802...

result:

wrong answer 1st numbers differ - expected: '42788', found: '41024'

Subtask #6:

score: 0
Skipped

Dependency #1:

0%