QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#328992#4936. Shopping ChangesHuangHanShengWA 57ms7720kbC++232.3kb2024-02-16 11:38:482024-02-16 11:38:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 3596kb

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: 1ms
memory: 3596kb

input:

1 1
589284012
1 767928734

output:

0

result:

ok single line: '0'

Test #4:

score: -100
Wrong Answer
time: 57ms
memory: 7720kb

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:

wrong answer 2nd lines differ - expected: '24830913', found: '24830916'