QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505408#5763. Cheating a Boolean Treexiaowuc115 ✓104ms48988kbJava83.4kb2024-08-05 05:10:172024-08-05 05:10:18

詳細信息

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 37ms
memory: 38292kb

input:

20
11 0
1 1
0 1
1 0
0 1
0 1
1
1
1
0
0
1
9 0
0 0
1 1
1 1
0 1
1
0
1
0
1
9 1
0 0
0 1
0 1
1 0
1
0
1
1
1
15 1
1 1
0 1
1 1
0 0
1 1
1 1
1 1
0
0
0
0
1
0
0
1
19 1
1 1
0 0
0 1
1 1
0 0
1 0
1 0
0 1
1 1
0
0
0
1
0
1
0
0
0
0
25 1
1 0
0 0
1 0
1 1
1 1
1 1
1 0
1 1
1 0
1 1
1 0
1 1
0
1
1
1
0
1
1
0
0
0
1
1
0
27 0
0 0
0 ...

output:

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

result:

ok 20 lines

Subtask #2:

score: 10
Accepted

Test #2:

score: 10
Accepted
time: 104ms
memory: 48988kb

input:

20
1247 0
1 0
0 1
0 0
0 0
1 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
0 0
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 0
0 0
0 0
0 0
0 0
0 0
1 0
0 0
1 1
0 1
0 1
1 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
1 1
0 0
0 ...

output:

Case #1: 114
Case #2: 2370
Case #3: 18
Case #4: 5
Case #5: 8
Case #6: 156
Case #7: 188
Case #8: 35
Case #9: IMPOSSIBLE
Case #10: IMPOSSIBLE
Case #11: IMPOSSIBLE
Case #12: 37
Case #13: IMPOSSIBLE
Case #14: 123
Case #15: 85
Case #16: 33
Case #17: IMPOSSIBLE
Case #18: 554
Case #19: 12
Case #20: 0

result:

ok 20 lines

Extra Test:

score: 0
Extra Test Passed