QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#467191#1943. BordersZhaoZiLongWA 2ms5592kbC++202.8kb2024-07-08 14:59:142024-07-08 14:59:14

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 5592kb

input:

100 100
0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
1010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010
010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101...

output:

5198

result:

ok single line: '5198'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

5 6
001011
010101
100110
010101
001011

output:

12

result:

ok single line: '12'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

6 10
1110100000
1101011110
1010011010
1101010110
1010011110
1101100000

output:

11

result:

ok single line: '11'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3568kb

input:

1 1
1

output:

1

result:

ok single line: '1'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3544kb

input:

1 100
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111

output:

1

result:

ok single line: '1'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

100 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

output:

1

result:

ok single line: '1'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

1 100
1111000000011111100001111010101000001111111111110000101010101100010101010110101010101110000000000000

output:

44

result:

ok single line: '44'

Test #8:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

100 1
0
1
0
0
1
1
1
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
1
1
0
0
1
0
0
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
1
0
1
0
1
0
1
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0

output:

29

result:

ok single line: '29'

Test #9:

score: 0
Accepted
time: 0ms
memory: 3920kb

input:

100 100
1011111110111101111111011111111101111111111111111111111111001111111111111001011111111111111111111011
1111111111111111111111111111111011111111111101110111011101111101101110110111111111100111111111111111
111111111111111111111011111111111111111111111011101111111111111011111111110111111111111111...

output:

33

result:

ok single line: '33'

Test #10:

score: 0
Accepted
time: 2ms
memory: 3944kb

input:

100 100
0011111111110100101101111111111111100110111111010111111001101110111111111110111011011111111111111011
1111011111110111011011110110011111101111111101011110101100101111111110110010111011111111111101111111
111110010111110110111011110111101101111111110011101101111111111111111110101101111111110011...

output:

89

result:

ok single line: '89'

Test #11:

score: 0
Accepted
time: 2ms
memory: 3904kb

input:

100 100
1100101011110110011111111010010111011100111111011111111110111101110110010111011110001111110011111111
0011001101111010110101111101011111101111111111100110001011101110101111111100010111110111011011001111
001111111010111111110101101111101101111100111111110110100111001011111111111111110000101110...

output:

159

result:

ok single line: '159'

Test #12:

score: -100
Wrong Answer
time: 2ms
memory: 3956kb

input:

100 100
0011000011111001101111110111001110011101000100011010100111110011111111011010100001111110100111110010
1101011001000101101110001111101010101100010111011110011011111010111010111010111001110000110000000010
000000000110001111111011101111111010011000111100100010101111101010111100100011000011111100...

output:

371

result:

wrong answer 1st lines differ - expected: '372', found: '371'