QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#145346#5403. 树数术slime#0 1498ms169696kbC++142.4kb2023-08-22 08:54:282024-07-04 01:51:07

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 1373ms
memory: 169696kb

input:

699990 699995 233333
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...

output:

211
454
254
195
382
57
390
327
471
235
242
256
460
371
157
405
380
225
165
107
168
268
268
397
277
361
154
264
274
499
256
257
394
169
367
291
175
235
36
187
343
313
230
425
386
201
270
199
321
208
196
103
238
113
528
297
311
195
242
180
419
343
184
332
480
361
338
130
235
369
433
300
179
643
205
21...

result:

wrong answer 1st lines differ - expected: '121987', found: '211'

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 1498ms
memory: 152548kb

input:

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

output:

29
70
-16
34
91
124
451
0
64
249
-76
36
189
-77
200
269
-17
28
32
46
134
26
102
2
83
51
55
3
65
117
32
257
62
104
24
184
142
55
34
280
404
44
6
73
-4
113
-34
23
0
112
5
15
216
106
44
-12
113
82
277
87
-103
35
431
50
261
32
90
-21
138
139
468
-23
-38
87
111
45
-28
96
62
360
285
247
77
68
73
80
-19
89...

result:

wrong answer 1st lines differ - expected: '211594', found: '29'

Subtask #3:

score: 0
Wrong Answer

Test #3:

score: 0
Wrong Answer
time: 110ms
memory: 32540kb

input:

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

output:

16
165
22
80
196
196
258
141
286
192
471
178
126
199
147
291
246
96
567
114
73
408
216
-57
172
260
-13
107
-16
108
204
163
239
231
85
117
-96
219
85
323
299
59
155
402
27
124
18
104
175
244
-75
221
157
251
100
56
19
153
-49
401
34
318
136
16
132
125
12
371
157
256
163
248
94
201
136
142
247
188
84
3...

result:

wrong answer 1st lines differ - expected: '9733', found: '16'

Subtask #4:

score: 0
Skipped

Dependency #1:

0%