QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#877618#9070. Candy FactoryZhangYiDeWA 0ms3712kbC++201002b2025-01-31 23:45:212025-01-31 23:45:23

详细

Test #1:

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

input:

4 3
1
3
4
1

output:

3

result:

ok single line: '3'

Test #2:

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

input:

4 4
1
3
4
1

output:

7

result:

ok single line: '7'

Test #3:

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

input:

4 2
1
3
4
1

output:

1

result:

ok single line: '1'

Test #4:

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

input:

6 3
5
5
5
3
1
1

output:

1

result:

ok single line: '1'

Test #5:

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

input:

5 4
5
4
3
2
1

output:

5

result:

ok single line: '5'

Test #6:

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

input:

2 2
100
50

output:

50

result:

ok single line: '50'

Test #7:

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

input:

6 4
100
100
100
50
50
50

output:

2

result:

ok single line: '2'

Test #8:

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

input:

7 6
1
5
6
6
6
6
7

output:

5

result:

ok single line: '5'

Test #9:

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

input:

7 6
1
5
5
6
6
6
7

output:

6

result:

ok single line: '6'

Test #10:

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

input:

7 6
1
4
5
6
6
6
7

output:

7

result:

ok single line: '7'

Test #11:

score: -100
Wrong Answer
time: 0ms
memory: 3584kb

input:

5000 5000
1000000000
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1...

output:

681

result:

wrong answer 1st lines differ - expected: '4998999995001', found: '681'