QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#625044#7900. Gifts from Knowledgeucup-team5074#WA 60ms11656kbC++202.7kb2024-10-09 17:14:332024-10-09 17:14:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 11656kb

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: 60ms
memory: 11640kb

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:

512
16384
1
16
16384
64
16
8
8
1
8192
8192
64
64
16384
4096
64
32
8192
1
2
1
2048
8
2048
512
16384
16384
8192
4
64
1
8
2048
4096
16384
4096
4096
8
8192
8192
128
64
4
128
4
2048
256
1
2
16
16
1
32
256
512
16384
16384
1
32
8192
8
4096
8
128
8
32
4096
4096
32
512
1
16384
1
2
256
2048
512
16
4096
1
16
1...

result:

wrong answer 1st numbers differ - expected: '1024', found: '512'