QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#629644#5148. Tree DistancedanielzWA 46ms58776kbC++204.9kb2024-10-11 14:02:532024-10-11 14:02:53

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 46ms
memory: 58776kb

input:

5
1 2 5
1 3 3
1 4 4
3 5 2
5
1 1
1 4
2 4
3 4
2 5

output:

1000000000000000000
3
7
7
2
-1
3
7
7
2

result:

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