QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#38999#1271. In Search of GoldGuanYunchangWA 1160ms19048kbC++171.2kb2022-07-08 11:19:262022-07-08 11:19:27

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 9944kb

input:

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

output:

6

result:

ok single line: '6'

Test #2:

score: -100
Wrong Answer
time: 1160ms
memory: 19048kb

input:

1118
10 5
1 2 557878805 99156035
2 3 170460737 198842212
3 4 473592718 245654078
4 5 774731915 3786984
1 6 817584282 305447690
1 7 308601560 633840726
3 8 718662215 102379861
3 9 26761157 849561804
6 10 617758160 117754666
10 6
1 2 952221943 224077095
2 3 101056818 462900286
3 4 760307950 560511059
...

output:

1411481343
3753603561
2451798440
2414772415
3307453190
4490065261
4414121261
2816978868
2555185013
3116086232
3159869324
1582942446
1213751604
1927788364
2504746732
2508553278
3014059043
2439597035
2303205388
2110653290
3081993716
3699114788
1916042583
2021128541
2303200787
3850983146
2870883724
319...

result:

wrong answer 1005th lines differ - expected: '13632005637', found: '1000000000000000000'