QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#483577#6150. 拼图ax_by_c40 227ms5284kbC++172.7kb2024-07-18 19:49:242024-07-18 19:49:25

詳細信息

Test #1:

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

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: 4324kb

input:

1
2 100
89
00000000000000000000000000000001000000000000000000000000000001000000000010000000000000000
00000000000001000010000000011000100000001010000000000000000001000000000000000000000000010
10000000000000000000000000000000000000000000000001010001000000000000000000000000000000000
0000000000001000000...

output:

1554

result:

ok 1 number(s): "1554"

Test #3:

score: 10
Accepted
time: 162ms
memory: 4944kb

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: 48ms
memory: 4948kb

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: 121ms
memory: 4904kb

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: 100ms
memory: 5284kb

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: 5024kb

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: 227ms
memory: 4936kb

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: 85ms
memory: 5004kb

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: 5108kb

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'