QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505444#5841. World Cup 2010xiaowuc125 ✓4ms3752kbC++171.9kb2024-08-05 05:24:062024-08-05 05:24:06

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 4ms
memory: 3736kb

input:

50
2
1 1 0 1
1 1
1
1
1 1
1
1
1 0
1
10
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 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 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 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 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 0 ...

output:

Case #1: 2
Case #2: 0
Case #3: 1
Case #4: 1023
Case #5: 0
Case #6: 1
Case #7: 455
Case #8: 4
Case #9: 2
Case #10: 1
Case #11: 1
Case #12: 2
Case #13: 138
Case #14: 273
Case #15: 138
Case #16: 292
Case #17: 70
Case #18: 30
Case #19: 31
Case #20: 27
Case #21: 31
Case #22: 29
Case #23: 1023
Case #24: 1...

result:

ok 50 lines

Subtask #2:

score: 15
Accepted

Test #2:

score: 15
Accepted
time: 3ms
memory: 3752kb

input:

50
3
1 2 3 2 1 0 1 3
100 150 50 90
500 400
800
10
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 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 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 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

Case #1: 1350
Case #2: 102300000
Case #3: 64
Case #4: 159
Case #5: 8176
Case #6: 4481
Case #7: 153
Case #8: 341
Case #9: 836
Case #10: 1872
Case #11: 4275
Case #12: 2340
Case #13: 1879
Case #14: 622
Case #15: 218
Case #16: 132
Case #17: 11523102
Case #18: 11499186
Case #19: 11117632
Case #20: 381246...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed