QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#616381#9447. Admired Personucup-team881#TL 1ms4028kbC++201.3kb2024-10-06 03:26:402024-10-06 03:26:40

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3916kb

input:

5 3
2 6 5 1 1
6 3 8

output:

4

result:

ok 1 number(s): "4"

Test #2:

score: 0
Accepted
time: 1ms
memory: 3952kb

input:

3 2
1 1 9
1 1

output:

0

result:

ok 1 number(s): "0"

Test #3:

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

input:

11 7
13 21 9 5 16 32 15 29 20 40 4
24 34 43 39 18 30 11

output:

32

result:

ok 1 number(s): "32"

Test #4:

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

input:

35 6
46 96 10 18 91 16 36 89 16 68 2 43 85 53 20 14 3 89 27 60 86 74 42 14 65 15 72 18 39 48 40 59 6 60 39
29 91 55 47 76 35

output:

8

result:

ok 1 number(s): "8"

Test #5:

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

input:

20 11
12 45 14 46 69 65 42 55 18 52 90 87 73 24 97 43 49 9 91 4
28 24 69 47 19 1 32 45 80 94 11

output:

40

result:

ok 1 number(s): "40"

Test #6:

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

input:

21 3
40 28 40 38 89 29 70 79 60 88 31 67 40 95 54 58 19 17 35 47 90
87 24 64

output:

8

result:

ok 1 number(s): "8"

Test #7:

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

input:

31 2
77 41 47 88 52 83 94 100 68 69 42 33 58 100 36 19 52 90 57 30 50 13 23 81 100 95 70 31 86 52 36
48 38

output:

3

result:

ok 1 number(s): "3"

Test #8:

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

input:

24 3
73 73 91 74 74 8 39 52 37 91 54 72 39 88 96 62 98 10 63 71 51 91 73 31
3 72 42

output:

8

result:

ok 1 number(s): "8"

Test #9:

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

input:

54 52
354567715 885423943 332278115 67046378 493302195 569363718 108877394 246293714 183721606 801281076 261093995 897683144 214239210 462059871 539384345 904212428 430249401 624234755 835419221 642763261 5641394 325620087 908461250 973232000 801026625 279494929 924527311 412579705 2405772 705362535...

output:

1902376181

result:

ok 1 number(s): "1902376181"

Test #10:

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

input:

85 84
297766113 918155278 692003424 803856840 602278200 325528862 448992902 333488123 2556188 12170373 536504143 815031068 502717487 972128308 504877777 772900339 7408467 637679688 465367459 295441039 495350609 637327868 994779660 27811902 356935288 15817522 630853446 627101683 921988529 692943571 4...

output:

4346989854

result:

ok 1 number(s): "4346989854"

Test #11:

score: -100
Time Limit Exceeded

input:

232 128
634979074 173312952 882950529 637531730 126121000 149287411 812616981 731346571 619156789 536141185 83505080 89307842 979573065 1115326 491673083 32423922 561744136 895581540 326060957 801978979 179581254 951627583 620318045 726017954 181662221 548935733 373117019 325489093 854337142 7686817...

output:


result: