QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#88007#5755. Milkshakesxiaowuc135 ✓3ms3416kbC++171.5kb2023-03-14 23:00:082023-03-14 23:00:11

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

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

input:

100
8
14
3 1 0 8 0 6 0
2 8 0 7 1
2 8 0 2 0
5 4 0 5 1 8 0 6 0 3 0
6 4 0 8 0 2 0 6 0 5 1 1 0
4 6 0 1 0 2 0 4 0
1 2 0
1 5 1
2 3 0 7 1
1 7 1
4 2 0 4 0 3 0 7 1
2 3 0 5 1
4 5 1 6 0 3 0 1 0
1 7 1
3
8
1 3 0
1 1 0
2 3 0 1 0
1 2 1
1 2 1
1 3 0
1 1 0
2 3 0 2 1
5
41
1 3 0
1 3 0
1 2 0
1 4 0
1 2 0
1 3 0
3 4 0 2 0 ...

output:

Case #1: 0 0 0 0 1 0 1 0
Case #2: 0 1 0
Case #3: IMPOSSIBLE
Case #4: 0 0 0 0 0 0 1 0 0 0
Case #5: 0 1
Case #6: 0 0 0 1 1 1
Case #7: 1 1 1 1 1 0 0 0 0 0
Case #8: IMPOSSIBLE
Case #9: 1 1 1 1 1 1 1 1 1 1
Case #10: IMPOSSIBLE
Case #11: 0 1 0 0 0 0 0
Case #12: 0 1 0
Case #13: 1 0
Case #14: 0 0 1 1 0 0
Ca...

result:

ok 100 lines

Subtask #2:

score: 25
Accepted

Test #2:

score: 25
Accepted
time: 3ms
memory: 3416kb

input:

5
1684
501
33 1377 0 1254 0 730 0 1266 0 222 0 1399 0 533 0 739 0 128 0 966 0 1441 0 109 0 942 0 1245 0 1639 0 1089 0 1536 0 1103 0 673 0 1082 0 257 0 1607 0 1526 0 110 0 1592 0 548 0 187 0 264 0 1460 0 1033 0 516 0 1231 0 1373 1
1 879 1
35 356 0 332 0 1463 0 890 0 1513 0 1069 0 913 0 1425 0 1232 0 ...

output:

Case #1: 1 0 1 0 0 0 0 0 0 0 0 1 0 0 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

result:

ok 5 lines

Extra Test:

score: 0
Extra Test Passed