UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#132365#2091. 买票19100494ms9008kbC++359b2021-07-09 20:07:142021-07-09 20:07:15

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

6 10
1 1 1 1 1 10

output:

5

result:

ok single line: '5'

Test #2:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

10 100
90 1 1 1 1 1 96 1 1 1

output:

6

result:

ok single line: '6'

Test #3:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

13 100
80 2 2 2 2 2 91 3 3 3 3 3 99

output:

6

result:

ok single line: '6'

Test #4:

score: 10
Accepted
time: 2ms
memory: 1228kb

input:

4511 838
17 21 22 20 6 27 15 29 16 7 13 2 4 23 25 11 5 1 8 16 24 9 8 11 6 19 5 22 6 6 5 5 26 24 29 1...

output:

65

result:

ok single line: '65'

Test #5:

score: 10
Accepted
time: 0ms
memory: 1276kb

input:

10000 3371
5 25 30 15 5 4 27 3 9 4 9 24 19 28 23 11 2 14 29 3 15 27 29 28 19 27 17 8 13 1 15 4 19 6 ...

output:

256

result:

ok single line: '256'

Test #6:

score: 10
Accepted
time: 3ms
memory: 1280kb

input:

10360 4656
29 14 6 20 7 20 19 7 6 28 12 20 10 14 23 12 11 26 25 14 8 10 29 24 10 9 21 24 13 26 3 27 ...

output:

330

result:

ok single line: '330'

Test #7:

score: 10
Accepted
time: 147ms
memory: 7404kb

input:

794673 4081
2 1 13 30 14 7 26 23 14 1 27 11 28 14 12 5 14 10 17 19 18 21 22 26 11 7 1 17 18 4 22 29 ...

output:

304

result:

ok single line: '304'

Test #8:

score: 10
Accepted
time: 39ms
memory: 2764kb

input:

200320 5522
30 30 1 3 6 24 11 28 8 1 27 14 8 16 23 29 26 2 19 3 2 25 3 3 17 17 7 8 10 10 27 14 15 24...

output:

393

result:

ok single line: '393'

Test #9:

score: 10
Accepted
time: 111ms
memory: 7336kb

input:

599175 6584
15 8 3 28 10 6 2 22 16 8 19 15 17 16 25 6 2 19 27 17 16 18 7 24 13 10 17 5 6 17 23 5 14 ...

output:

508

result:

ok single line: '508'

Test #10:

score: 10
Accepted
time: 192ms
memory: 9008kb

input:

1000000 10000
3 12 1 16 19 22 8 6 4 9 2 9 20 29 7 29 15 1 16 25 5 15 26 2 6 17 22 2 21 20 10 22 1 4 ...

output:

710

result:

ok single line: '710'