QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#483580#6150. 拼图ax_by_c40 233ms5348kbC++172.7kb2024-07-18 19:51:252024-07-18 19:51:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 1ms
memory: 4120kb

input:

1
1 30
30
000000000000001000000000000000
000000000000000100000000000000
000000000000101000000010100001
000000000000000000010100000001
000100000000000000000001100000
000001000000000000000000000000
000000000100000000000000000000
000000000000000000000000000000
100000000000000000000000000000
00000100001...

output:

247

result:

ok 1 number(s): "247"

Test #2:

score: 10
Accepted
time: 22ms
memory: 4436kb

input:

1
2 100
89
00000000000000000000000000000001000000000000000000000000000001000000000010000000000000000
00000000000001000010000000011000100000001010000000000000000001000000000000000000000000010
10000000000000000000000000000000000000000000000001010001000000000000000000000000000000000
0000000000001000000...

output:

1554

result:

ok 1 number(s): "1554"

Test #3:

score: 10
Accepted
time: 165ms
memory: 4992kb

input:

1
3 1000
28
0000000000000100000000000000
0000000100000000000000000000
0000100000000000000000000000
0000000000000000000000000000
0000000000000000000000000000
0000000000000000000000000000
0000000000000000000000000000
0000000000000000000000000000
0000000000000000000000000000
000000000000001000000000000...

output:

4224

result:

ok 1 number(s): "4224"

Test #4:

score: 10
Accepted
time: 53ms
memory: 5060kb

input:

1
300 100
5
00001
00101
00000
00000
00010
00000
00000
00000
00000
10000
00000
00000
00000
00000
00010
00000
00100
00010
10000
00000
00000
00000
00000
00000
00001
00000
00100
00000
00000
00000
00000
00000
00000
00000
00000
01001
01000
00100
00000
00000
00000
10001
00000
00000
00100
00000
01000
00000
...

output:

18360

result:

ok 1 number(s): "18360"

Test #5:

score: 0
Wrong Answer
time: 123ms
memory: 5240kb

input:

3
12 6000
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
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
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
0
0
0
0
...

output:

16128
25914
15975

result:

wrong answer 1st numbers differ - expected: '17840', found: '16128'

Test #6:

score: 0
Wrong Answer
time: 99ms
memory: 5328kb

input:

3
12 5000
2
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
10
00
01
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
01
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
...

output:

25326
0
85430

result:

wrong answer 1st numbers differ - expected: '26850', found: '25326'

Test #7:

score: 0
Wrong Answer
time: 217ms
memory: 5052kb

input:

3
30 1000
5
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00010
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
00000
...

output:

9930
90120
0

result:

wrong answer 3rd numbers differ - expected: '13964', found: '0'

Test #8:

score: 0
Wrong Answer
time: 233ms
memory: 5348kb

input:

3
9 10000
1
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
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
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
0
0
0
0
0
0
0
0
...

output:

11565
88380
8232

result:

wrong answer 1st numbers differ - expected: '13698', found: '11565'

Test #9:

score: 0
Wrong Answer
time: 84ms
memory: 5032kb

input:

3
300 100
9
000000000
000000000
000001000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
00000000...

output:

14706
3654
89240

result:

wrong answer 2nd numbers differ - expected: '19680', found: '3654'

Test #10:

score: 0
Wrong Answer
time: 85ms
memory: 5052kb

input:

3
9000 10
2
00
10
00
00
00
00
00
00
00
00
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
...

output:

92340
22275
40296

result:

wrong answer 2nd numbers differ - expected: '30653', found: '22275'