QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#730602#9572. Bingoucup-team2796#TL 0ms3716kbC++2314.0kb2024-11-09 20:48:042024-11-09 20:48:05

詳細信息

Test #1:

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

input:

4
2 2
1 3 2 4
3 1
10 10 10
1 3
20 10 30
3 4
1 1 4 5 1 4 1 9 1 9 8 10

output:

56
60
60
855346687

result:

ok 4 number(s): "56 60 60 855346687"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3716kb

input:

1
2 2
0 0 998244352 998244352

output:

998244345

result:

ok 1 number(s): "998244345"

Test #3:

score: -100
Time Limit Exceeded

input:

900
1 1
810487041
1 2
569006976 247513378
1 3
424212910 256484544 661426830
1 4
701056586 563296095 702740883 723333858
1 5
725786515 738465053 821758167 170452477 34260723
1 6
204184507 619884535 208921865 898995024 768400582 369477346
1 7
225635227 321139203 724076812 439129905 405005469 369864252...

output:


result: