QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#564429#5148. Tree Distancegg_gongWA 1134ms109972kbC++203.2kb2024-09-14 23:50:192024-09-14 23:50:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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:

-1
3
7
7
2

result:

ok 5 number(s): "-1 3 7 7 2"

Test #2:

score: -100
Wrong Answer
time: 1134ms
memory: 109972kb

input:

199999
31581 23211 322548833
176307 196803 690953895
34430 82902 340232856
36716 77480 466375266
7512 88480 197594480
95680 61864 679567992
19572 14126 599247796
188006 110716 817477802
160165 184035 722372640
23173 188594 490365246
54801 56250 304741654
10103 45884 643490340
127469 154479 214399361...

output:

-2147410668
-1677423355
-2147483152
-2147481188
-2147483152
-2146539605
-2147481721
-2147475862
-2146502776
-2140071841
-2147219038
-2147483152
-2147481721
-2147475862
-2147483152
-2147415440
-2147414897
-2144090692
-2147467897
-2147483152
-2147481721
-2147483152
-2147481721
-2146842961
-2147469271
...

result:

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