QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#204311#7509. 01treeZ_301WA 16ms40612kbC++178.0kb2023-10-07 09:40:222023-10-07 09:40:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 8ms
memory: 40612kb

input:

3
2
1 2
00
11
3
1 2
2 3
???
???
3
1 2
2 3
??1
0?0

output:

1
16
1

result:

ok 3 number(s): "1 16 1"

Test #2:

score: -100
Wrong Answer
time: 16ms
memory: 40572kb

input:

1000
23
1 2
1 3
1 4
2 5
5 6
4 7
3 8
4 9
8 10
8 11
8 12
1 13
7 14
10 15
7 16
7 17
5 18
18 19
12 20
9 21
21 22
6 23
00?10?0000??1?00111?010
011??1?10?01?110?0??101
6
1 2
1 3
1 4
4 5
3 6
000?10
1???01
25
1 2
2 3
2 4
4 5
5 6
2 7
4 8
5 9
7 10
8 11
11 12
5 13
11 14
3 15
6 16
14 17
1 18
4 19
6 20
4 21
5 22...

output:

53545
24
11724
2228
162
14
711
28
550
1680
52
2
13
988
9480
2594
626416
0
115824
1
90
39207
19448
4
37395
9602
3253496
38057200
4706
7
303732
1608
377118
11718
170
78
15
1219376
29364
9092
35
0
2
7014
1942448
170371
75845
167217
16554
64
904
564290
14822
1318034
1933536
3320686
16112396
14954550
360...

result:

wrong answer 16th numbers differ - expected: '2342', found: '2594'