QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#571664#5070. Check Pattern is BadGuanYunchangTL 0ms3596kbC++171.2kb2024-09-18 02:56:262024-09-18 02:56:26

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

YES
WW
WB
NO
YES
BWB
WWW
BWB

result:

ok ok (3 test cases)

Test #2:

score: -100
Time Limit Exceeded

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:

NO
YES
WW
WB
BB
BW
WW
WB
NO
NO
YES
B
W
W
B
B
W
W
W
B
W
YES
WWWW
WBWB
WWWW
WBBW
WWWW
BWBW
WWWW
BWBW
WWWW
WBBW
YES
WBW
WWW
WBW
WWW
WBW
WWW
WBW
WWW
YES
W
B
W
W
YES
WBWB
WWWB
YES
BWWBBB
BBWWWB
YES
WWWWW
YES
BWWWWW
WWBWBB
BBBWWW
WWWWBW
YES
W
YES
BWB
BBB
WBW
WBB
WWB
WBB
BBW
WWW
YES
WWBBWBB
WBBWWWW
BBWWBBW...

result: