QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#391302#5071. Check Pattern is GoodmonstersqwqWA 6ms5752kbC++145.1kb2024-04-16 15:26:432024-04-16 15:26:44

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 5708kb

input:

3
2 2
??
??
3 3
BW?
W?B
?BW
3 3
BW?
W?W
?W?

output:

1
WB
BW
1
BWB
WWB
BBW
4
BWB
WBW
BWB

result:

ok ok (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 6ms
memory: 5752kb

input:

10000
9 2
BB
BW
WW
WW
?W
?B
B?
W?
BB
6 2
??
?B
B?
BW
WW
??
10 7
WBBBW??
???BWWW
???BWWB
??WWBW?
BBWBBWB
WWB?WW?
BWBW???
WWWWBBW
BBWBB?W
B?W?W?B
4 7
??WBWWB
?BBWWWB
?W?BBB?
BBBWBBB
10 1
B
W
?
B
B
W
W
W
B
?
10 4
??WW
W?W?
WWW?
???W
?W??
?W?W
W?W?
?W?W
???W
???W
8 3
WBW
W??
???
???
W?W
W?W
???
?W?
4 1
...

output:

B?BWBWW
BW?WBB?
BW?BBBB
BB?W?B?
B?BBBWW
B??BBBW
31
BWBWBWBWBW
BWWBWBWBWB
WBWBBWBWBW
BWBWWWBWWB
WBWBBBWBBW
BBWBWWBWBW
BWBBBBWBWB
0
WBBWWWBBB
0
BBBBB
1
WWWWBWWWW
WBWWBWWWB
WBWWWBWWW
0
BB
25
WBBBBBBBW
BWBWBBBWB
BWBWBBWBW
WBWBWBBWB
BBWBWWWBW
BWBWBWBBB
WBWBWBBWB
BWBBBBBWW
BBWBBBWBB
0
B
B
B
B
W
W
16
WBWWW...

result:

wrong output format Expected integer, but "B?BWBWW" found (test case 1)