QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#68703#4585. Greedy KnapsackMaMengQiRE 0ms0kbC++14666b2022-12-18 22:45:182022-12-18 22:45:22

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Dangerous Syscalls

input:

5 10
10 1 2 3 4
1 1 1 1 1

output:

0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  
0  0  0  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  
0  0  0  4  4  6  6  6  10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 
0  0  0  4  4  6  6  7  10 10 11 11 13 13 13 17 17 17 17 17 17 17 17 
0  0  0  4  4  6  6 ...

result: