QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#204314#7509. 01treeZ_301WA 12ms42556kbC++178.0kb2023-10-07 09:41:292023-10-07 09:41:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 12ms
memory: 42556kb

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
21324
2228
162
14
1107
28
662
1680
52
2
13
1240
9480
9902
725424
0
115824
1
90
41781
20176
4
229587
29930
4338776
38057200
5126
9
303732
1608
1161902
11718
184
78
15
1219376
34908
9092
43
0
2
7014
1942448
595081
75845
244437
65174
112
904
598562
40342
1381682
1933536
3320686
18031016
156599...

result:

wrong answer 3rd numbers differ - expected: '11724', found: '21324'