QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#578690#7900. Gifts from Knowledgeucup-team4921#WA 16ms3608kbC++171.2kb2024-09-20 20:50:162024-09-20 20:50:20

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3576kb

input:

3
3 5
01100
10001
00010
2 1
1
1
2 3
001
001

output:

4
0
2

result:

ok 3 number(s): "4 0 2"

Test #2:

score: -100
Wrong Answer
time: 16ms
memory: 3608kb

input:

15613
10 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
15 8
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
1 5
00000
5 9
000000000
000000000
0000...

output:

1024
0
2
32
0
0
32
16
16
2
0
0
0
0
0
0
128
0
0
2
4
2
0
16
0
1024
0
32768
0
8
0
2
16
0
0
32768
0
0
16
0
0
256
0
8
256
8
0
0
2
4
32
0
2
64
0
0
0
0
2
64
0
16
0
16
256
16
64
8192
8192
64
0
2
0
2
4
512
0
0
32
0
2
0
2
0
0
16
0
128
0
0
128
0
256
0
0
16
64
4
0
128
0
0
32
512
32
32
0
4
0
0
64
0
0
2
4096
4
2
...

result:

wrong answer 2nd numbers differ - expected: '32768', found: '0'