QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#204333#7509. 01treeZ_301WA 16ms42520kbC++178.1kb2023-10-07 10:08:082023-10-07 10:08:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 7ms
memory: 42520kb

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: 40484kb

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:

50971
0
9564
999994255
162
14
693
28
494
1512
52
2
13
736
999982757
578
527408
0
999927643
1
64
999964568
16536
4
37395
9602
3253496
38057200
1066
3
303732
999997583
281022
10794
142
78
15
956828
21972
9092
7
0
2
7014
1942448
144631
75845
167217
15124
64
772
461474
14382
996098905
997995323
297406
1...

result:

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