QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#871921#9459. Tree EquationHuluoboWA 96ms4480kbC++147.0kb2025-01-25 22:48:282025-01-25 22:48:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3712kb

input:

2
2 3 10
0 1
0 1 2
0 1 1 3 4 3 6 3 1 9
4 3 10
0 1 2 2
0 1 2
0 1 1 3 4 3 6 3 1 9

output:

Impossible
2 1
0 1 
0 

result:

ok 2 cases passed

Test #2:

score: -100
Wrong Answer
time: 96ms
memory: 4480kb

input:

11122
3 3 11
0 1 1
0 1 1
0 1 1 1 4 4 1 1 8 8 1
7 2 10
0 1 2 2 2 1 1
0 1
0 1 2 1 1 5 5 5 1 1
7 8 14
0 1 2 1 1 1 1
0 1 2 1 1 1 1 1
0 1 1 3 1 1 1 1 1 1 1 11 1 1
4 8 11
0 1 1 1
0 1 1 1 1 1 6 6
0 1 1 1 1 1 6 6 1 1 1
3 4 13
0 1 1
0 1 1 1
0 1 1 3 1 5 1 1 8 1 10 1 12
11 2 14
0 1 2 1 4 4 4 1 1 1 1
0 1
0 1 1 ...

output:

0 1 1 1 4 4 4 1 1 1 1 
0 1 2 2 2 2 2 2 2 2 1 1 1 1 14 14 14 14 14 14 1 21 1 1 1 1 1 1 1 1 1 31 31 31 31 35 35 35 35 35 31 31 31 31 31 31 31 31 31 1 1 1 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 1 71 71 71 71 71 71 71 71 71 71 1 1 1 84 84 84 84 84 84 84 84 84 84 84 1 1 1 
0 1 2 2 2 1 6 6 ...

result:

wrong answer participant's solution is not a solution of the equation on case #1