QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#174461#4839. Smaller LCAbjaoefiajWA 769ms181420kbC++143.4kb2023-09-10 08:00:202023-09-10 08:00:20

详细

Test #1:

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

input:

5
1 2
4 2
2 5
3 5

output:

15
15
15
15
14

result:

ok 5 number(s): "15 15 15 15 14"

Test #2:

score: -100
Wrong Answer
time: 769ms
memory: 181420kb

input:

300000
40632 143306
32259 40632
225153 143306
269774 225153
289668 40632
191636 269774
85717 191636
58564 191636
156509 143306
289939 40632
247103 269774
40257 40632
98149 289668
142277 143306
291616 40257
46813 225153
56324 143306
277154 142277
53903 289668
114266 32259
152231 58564
241151 152231
4...

output:

44999437117
44999622799
44999601965
44999634427
44999083422
44999508403
44999465896
44999168333
44999027551
44999186672
44999615765
44999223839
44999340529
44999298959
44999423759
44999377637
44999192802
44999373977
44999384753
44999210812
44999629641
44999368917
44999374219
44999165540
44999340761
...

result:

wrong answer 2nd numbers differ - expected: '44999604051', found: '44999622799'