QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#367424#5148. Tree DistanceDiaosiWA 1532ms222932kbC++142.5kb2024-03-25 22:35:502024-03-25 22:35:51

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 9060kb

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: 1532ms
memory: 222932kb

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:

272209
862081756
4088
25146
4088
5353388
6168666
992873
1845571
24742113
5530245
9935
10231
10231
4088
678996
97324
23608027
108182
4088
85628
4366
25146
4389421
92126
4088
40670704
1618572
2708870
85628
10231
12887407
3095088
72696
85628
10231
85628
4088
-1
-1
339719
9935
72696
153731
4366
4088
113...

result:

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