QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#339435#4936. Shopping ChangesZhangYiDeTL 0ms3888kbC++173.7kb2024-02-27 12:04:232024-02-27 12:04:23

詳細信息

Test #1:

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

input:

3 3
5 6 7
6 2 3 4 8 9 10
2 100 99
3 5 6 7

output:

0
1
1

result:

ok 3 lines

Test #2:

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

input:

3 2
7 6 5
6 2 3 4 8 9 10
6 10 9 8 4 3 2

output:

3
27

result:

ok 2 lines

Test #3:

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

input:

1 1
589284012
1 767928734

output:

0

result:

ok single line: '0'

Test #4:

score: -100
Time Limit Exceeded

input:

10000 9999
298772847 712804102 869795012 527998188 804246450 598105371 843966934 639805471 937482040 887551242 254734680 188704975 17408126 626523673 553956319 697723205 231690822 637079761 232393146 377026277 962223856 338922458 912529500 710873344 942955137 51167037 195729799 529674367 990599310 4...

output:

24802338
24830916
24857654
24813132
24846181
24785558
24857315
24805180
24862749
24785339
24804999
24780907
24808015
24798989
24958301
24781372
24772291
24846085
24953540
24778276
24778689
24979603
24770012
24892097
24776909
24865307
24821514
24772586
24800432
24891489
24864492
24820312
24801522
248...

result: