QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#305385#1265. Total Eclipseucup-team1005#AC ✓353ms14812kbC++111.2kb2024-01-15 09:48:172024-01-15 09:48:18

詳細信息

Test #1:

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

input:

1
3 2
3 2 3
1 2
2 3

output:

4

result:

ok single line: '4'

Test #2:

score: 0
Accepted
time: 353ms
memory: 14812kb

input:

10
90000 89999
29695126 280198164 879119046 430007344 949559367 73085127 889966040 364820814 284458985 931692411 799753826 296370022 333668874 420472873 151595337 343496667 39363958 831424981 863897406 650573429 217091529 533448388 789707546 749864138 599409565 909987504 320920370 476338054 11898738...

output:

15024049952546
16659615874110
400000005
400000003
5601933778666
6160080698685
5988219861596
6982527535131
6237837736440
6956893227831

result:

ok 10 lines