QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#576913#5070. Check Pattern is BadZhaoZiLongWA 15ms3680kbC++171.7kb2024-09-19 23:19:572024-09-19 23:19:57

詳細信息

Test #1:

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

input:

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

output:

YES
WW
WW
NO
YES
BWB
WWW
BWB

result:

ok ok (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 15ms
memory: 3680kb

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:

YES
BB
BW
WW
WW
BW
BB
BW
WW
BB
YES
WW
WB
BW
BW
WW
WW
YES
WBBBWBW
WWWBWWW
WWWBWWB
WWWWBWW
BBWBBWB
WWBBWWW
BWBWWBW
WWWWBBW
BBWBBWW
BWWWWWB
NO
YES
B
W
W
B
B
W
W
W
B
W
YES
WWWW
WBWB
WWWW
WWWW
WWWW
WWWW
WWWW
WWWW
WWWW
WWWW
YES
WBW
WWW
WWW
WWW
WWW
WWW
WWW
WWW
YES
W
B
W
W
YES
WBWB
WWWB
YES
BWWBBB
WWWWWB
YE...

result:

wrong answer There is a check pattern in (1, 0) (test case 2)