QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#859854#5736. Black and WhitevibeslayerAC ✓1ms3712kbC++201.0kb2025-01-18 03:37:532025-01-18 03:37:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
WBBW
WBWB
BWWB
BWBW

output:

1

result:

ok single line: '1'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

4
BWWB
BWBB
WBBW
WBWW

output:

0

result:

ok single line: '0'

Test #3:

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

input:

6
BWBWWB
WBWBWB
WBBWBW
BBWBWW
BWWBBW
WWBWBB

output:

0

result:

ok single line: '0'

Test #4:

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

input:

6
WWBBWB
BBWWBW
WBWBWB
BWBWBW
BWBBWW
WBWWBB

output:

1

result:

ok single line: '1'

Test #5:

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

input:

10
BBWWBBWWBW
BWBBWBWBWW
WBBWBWBWWB
WBWBWWBWBB
BWBWWBWBBW
WBWBBWBBWW
BWBWWBWWBB
WBWBBWBWWB
WWBWBBWBBW
BWWBWWBBWB

output:

1

result:

ok single line: '1'

Test #6:

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

input:

12
BWWBBWBWWBBW
BWWBWBWWBWBB
WBBWBWBBWBWW
WBBWBBWWBWBW
BWWBWWBBWBWB
WBBWBWWBBWBW
BWWBWBBWWBWB
WBWBWBWBBWWB
BWBWBWBWWBBW
WWBBWBWBWBWB
BBWWBWBWBWWB
WBBWWBWBBWBW

output:

1

result:

ok single line: '1'

Test #7:

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

input:

2
WB
BW

output:

1

result:

ok single line: '1'

Test #8:

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

input:

4
WBWB
WBBW
BWWB
BWBW

output:

1

result:

ok single line: '1'

Test #9:

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

input:

6
WWBBWB
BBWBWW
BBWWBW
WWBWBB
WWBBWB
BBWWBW

output:

1

result:

ok single line: '1'

Test #10:

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

input:

8
WBBWBWBW
BWWBWBBW
BBWWBWWB
WWBBWBWB
WBWBWBBW
BWBWBWWB
BWBWWBBW
WBWBBWWB

output:

1

result:

ok single line: '1'

Test #11:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

24
BBWWBWWBBWWBBWBBWWBWWBBW
WBWBWBBWWBBWWBWBWBWBBWWB
BWBWBWWBBWBBWBWWBWBWBBWW
WBWBWBWBWBWWBWBWBBWBWWBB
WBWWBWBWWBWWBBWBWBBWBBWB
BWBBWBBWBWBBWWBWBWBWWBWW
WWBWWBWBBWWBBWBBWBWBWWBB
BBWBBWBWWBWWBBWWBWBWBWBW
WBBWBWWBWWBBWBBWWBWWBBWB
BWBWWBBWBBWBBWWBWBWBWBWW
WBWBBWBWWBBWWBBWBWBBWWBW
BWWBWBWBBWBWBBWBWWBWBW...

output:

1

result:

ok single line: '1'

Test #12:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

24
WBWWBWBBWBWBWBBWWBBWWBBW
BWWBBWWBWWBWBBWBBWWBWBWB
WWBBWBBWBBWBBWBWWBWWBWBW
WBBWWBBWBWBBWBWBWWBBWWBW
BBWWBWWBWWBWBWBWBBWWBBWB
BWBBWWBWWBWBBWWBWBBWBWBW
WBWBWBWBBWBWWBWWBWBBWBWB
WBBWBWBWBWWBWWBBWBWWBWBB
BWBWBBWBWBWWBWBWBWBBWWBW
BWWBWBBWWBBWWBWBBWBWBBWW
WBBWBWBWBWBBWWBWWBWBBWWB
BBWWBWWBWBWWBBWBWBWBWB...

output:

1

result:

ok single line: '1'

Test #13:

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

input:

24
WBWWBWBWBWBBWWBBWBBWBBWW
BWBBWBBWWBBWWBWWBWWBWWBB
WWBBWBWBWBWWBWBWWBBWBBWB
BBWWBWBWBWWBBWWBBWWBWBBW
BWWBWWBBWBBWWBBWWBWBWWBB
WBBWWBWBBWWBWWBBWBBWBBWW
WBBWBWBWWBWWBBWBBWWBWWBB
BWWBWBWBBWBWBWBWWBBWBWWB
WBBWBWBWBBWBWBWBBWWBWBWW
BWBWWBWBWBBWBBWWBWBBWWBW
WBWBBWBWBWWBBWBBWBWWBWWB
BWWBWBWWBBWBWWBWBWBBWB...

output:

1

result:

ok single line: '1'

Test #14:

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

input:

24
WBBWWBBWWBWWBWBBWWBWBWBB
BWWBWBWBBWBBWWBBWWBBWWBW
WBBWBWWBWBBWBBWWBBWWBBWW
BWWBWBBWWBWBWWBBWBBWWBWB
WBBWWBBWBWBWBWBWBWBBWWBW
WBWBBWWBWWBBWBWBWBWBBWWB
BWBBWWBBWBWBWBWWBBWWBBWW
BWBWBBWWBWBWBWBWBWBBWWBW
WBWWBWBBWBWBWBWBWBBWWBWB
BBWBWWBWBWBWWBBWWBWWBWBB
WWBBWBWBBWWBBWWBBWWBWBBW
WBBWBWWBWBWWBBWBBWBWBW...

output:

1

result:

ok single line: '1'

Test #15:

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

input:

24
WBWBWBBWBBWWBBWBWBWWBWWB
BWBWBWWBBWBBWWBWBWBBWWBW
WBBWWBBWWBWBBWWBWBWWBBWB
BBWBBWWBWWBWWBBWBWBBWBWW
WWBWWBBWBBWBWBWBWBWWBWBB
BBWBWWBWWBBWBWWBBWWBWBBW
WBBWBBWBWWBBWBBWBWBWWBWW
BWBBWBWWBWWBBWWBWBWWBWBB
WBWWBWBWWBBWWBBWBBWBWBBW
BWBWBWWBBWBWBBWBWWBBWBWW
WBWBWBBWBWWBBWBWWBBWBWWB
BWWBBWWBWBBWWBBWBBWWBW...

output:

1

result:

ok single line: '1'

Test #16:

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

input:

24
WBWBWBBWBBWWBBWBWBWWBWWB
BWBWBWWBBWBBWWBWBWBBWWBW
WBBWWBBWWBWBBWWBWBWWBBWB
BBWBBWWBWWBWWBBWBWBBWBWW
WWBWWBBWBBWBWBWBWBWWBWBB
BBWBWWBWWBBWBWWBBWWBWBBW
WBBWBBWBWWBBWBBWBWBWWBWW
BWBBWBWWBWWBBWWBWBWWBWBB
WBWWBWBWWBBWWBBWBBWBWBBW
BWBWBWWBBWWBBBWBWWBBWBWW
WBWBWBBWBWWBBWBWWBBWBWWB
BWWBBWWBWBBWWBBWBBWWBW...

output:

0

result:

ok single line: '0'

Test #17:

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

input:

24
WBWBWBBWBBWWBBWBWBWWBWWB
BWBWBWWBBWBBWWBWBWBBWWBW
WBBWWBBWWBWBBWWBWBWWBBWB
BBWBBWWBWWBWWBBWBWBBWBWW
WWBWWBBWBBWBWBWBWBWWBWBB
BBWBWWBWWBBWBWWBBWWBWBBW
WBBWBBWBWWBBWBBWBWBWWBWW
BWBBWBWWBWWBBWWBWBWWBWBB
WBWWBWBWWBBWWBBWBBWBWBBW
BWBWBWWBBWBWBBWBWWBBWBWW
WBWBBWBWBWWBBWBWWBBWBWWB
BWWBBWWBWBBWWBBWBBWWBW...

output:

0

result:

ok single line: '0'

Test #18:

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

input:

24
WBWBWBBWBBWWBBWBWBWWBWWB
BWBWBWWBBWBBWWBWBWBBWWBW
WBBWWBBWWBWBBWWBWBWWBBWB
BBWBBWWBWWBWWBBWBWBBWBWW
WWBWWBBWBBWBWBWBWBWWBWBB
BBWBWWBWWBBWBWWBBWWBWBBW
WBBWBBWBWWBBWBBWBWBWWBWW
BWBBWBWWBWWBBWWBWBWWBWBB
WBWWBWBWWBBWWBBWBBWBWBBW
BWBWBWWBBWBWBBWBWWBBWBWW
WBWBWBBWBWWBBWBWWBBWBWWB
BWWBBWWBWBBWWBBWBBWWBW...

output:

0

result:

ok single line: '0'