QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#682114#3565. Beer PressureZhaoZiLong0 0ms0kbC++202.2kb2024-10-27 14:00:262024-10-27 14:00:27

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 0
Time Limit Exceeded

input:

3 7
3 1 1
1 1
1
1 50
1
2 2
1 1
2 50
1 1
2 50
1 2
3 3
1 1 1
3 50
1 1 1
3 50
1 1 2
4 4
1 1 1 1
4 50
1 1 1 1
4 50
1 1 1 2
5 5
1 1 1 1 1
5 50
1 1 1 1 1
5 50
1 1 1 1 2
4 49
2 10 4 2
4 36
4 3 2 4
3 27
2 6 10
1 16
9
3 43
3 6 3
2 28
6 5
3 37
5 7 9
1 44
1
5 44
8 1 9 8 7
3 46
8 2 6
4 28
4 10 4 9
4 50
1 8 6 4
...

output:


result: