QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505531#5936. Charging Chaosxiaowuc125 ✓180ms3612kbC++172.5kb2024-08-05 05:57:382024-08-05 05:57:39

詳細信息

Subtask #1:

score: 8
Accepted

Test #1:

score: 8
Accepted
time: 1ms
memory: 3504kb

input:

100
1 2
11
10
10 10
1111011011 1001000101 1100100000 0011010011 0010110100 1000011100 0110000100 1001101110 0101101011 0110111011
0011101111 1111000001 1010100100 0000111111 0000000000 1111101010 1110011000 0100110000 0101010111 1001011111
2 9
100110001 001011011
011011011 110110001
6 7
1010100 0101...

output:

Case #1: 1
Case #2: 3
Case #3: 1
Case #4: NOT POSSIBLE
Case #5: 2
Case #6: 6
Case #7: 1
Case #8: 0
Case #9: 1
Case #10: 1
Case #11: 1
Case #12: 3
Case #13: 8
Case #14: 1
Case #15: NOT POSSIBLE
Case #16: 1
Case #17: 3
Case #18: 2
Case #19: 7
Case #20: 5
Case #21: NOT POSSIBLE
Case #22: NOT POSSIBLE
C...

result:

ok correct! (100 test cases)

Subtask #2:

score: 17
Accepted

Test #2:

score: 17
Accepted
time: 180ms
memory: 3612kb

input:

100
1 10
1010111000
0001011000
38 28
0101111111011010010001100101 1010000010100111101010001011 1010001101110111111010001111 0001111111011000010101110000 1010000100110111000110011011 0001111010011000000101110100 0101110110011000001101100000 1110001010100101111010011010 1010000011110111011110001110 11...

output:

Case #1: 4
Case #2: 7
Case #3: NOT POSSIBLE
Case #4: NOT POSSIBLE
Case #5: 6
Case #6: 14
Case #7: 19
Case #8: 8
Case #9: 15
Case #10: 20
Case #11: 15
Case #12: NOT POSSIBLE
Case #13: 8
Case #14: NOT POSSIBLE
Case #15: 18
Case #16: 4
Case #17: 5
Case #18: 10
Case #19: NOT POSSIBLE
Case #20: 4
Case #2...

result:

ok correct! (100 test cases)

Extra Test:

score: 0
Extra Test Passed