QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#65352#5070. Check Pattern is BadflowerWA 114ms3544kbC++203.5kb2022-11-29 22:08:102022-11-29 22:08:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

YES
WW
BB
NO
YES
BWW
WWW
WWB

result:

ok ok (3 test cases)

Test #2:

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

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
WW
WB
BB
WB
BB
YES
WW
BB
BB
BW
WW
WW
NO
NO
YES
B
W
W
B
B
W
W
W
B
W
YES
WWWW
WBWB
WWWW
WWWW
WWBB
WWBW
WWWW
WWWW
BBWW
BBBW
YES
WBW
WWW
WBB
WWW
WWW
WWW
BBW
BWW
YES
W
B
W
W
YES
WBWB
WBBB
YES
BWWBBB
BBWWWB
YES
WWWWB
YES
BWWWBB
WWBWWB
BBBWWW
WWWWBW
YES
W
YES
BWB
BBB
WBW
WBB
WWB
BBB
BBW
WWW...

result:

ok ok (10000 test cases)

Test #3:

score: 0
Accepted
time: 92ms
memory: 3520kb

input:

10000
9 6
?B?W?W
WWBBWB
?WB?BW
B?W?W?
WW??W?
B???BW
?W?WW?
W?B?B?
?W?BB?
10 1
W
?
?
?
?
?
?
?
B
W
9 4
????
????
W???
?W?B
??WW
?BW?
WW?W
??W?
??W?
3 2
?W
?B
BB
2 7
?W?BWWB
??W???W
9 9
?BW?WWW?W
BW?WBBWWW
W?W????WW
W??WW??WW
W?BWB?B?W
??BB?WWWW
W???WBW?W
WWW???WWW
B?WWWWWW?
8 10
W??BWWW??B
?BWBWBW?BW...

output:

NO
YES
W
W
W
B
B
W
W
W
B
W
YES
WWBB
WWWW
WWBB
WWBB
WWWW
WBWB
WWWW
BWWB
BBWW
YES
WW
WB
BB
YES
WWWBWWB
BBWWWWW
NO
NO
YES
WWB
BWW
BBB
WBW
WWW
YES
WWWWWWBBW
WWWWBWBWW
WBWWBBBWW
WWWWBBBWB
BWWBBWBWW
BWWBWWBWB
WWWWWWWWB
YES
WBWWWWB
BBBWWWW
WWWWWWW
BBWWWBW
BBWBWWW
WWWBWBB
WWWBWWB
WWWWWWW
BWWBBWW
YES
WW
WB
W...

result:

ok ok (10000 test cases)

Test #4:

score: -100
Wrong Answer
time: 114ms
memory: 3488kb

input:

10000
7 7
?B??BBW
????BB?
WBBB??B
WW?B???
?B??BBB
BBWB??B
B???BB?
10 6
W?WW??
W??W??
?WWWW?
?WW?WW
WW??W?
W?????
W?WW??
WW???W
WWW??W
?W??W?
2 6
?B??W?
B???BB
1 8
??BWB?W?
5 2
WB
W?
B?
BB
?W
7 5
W????
?WW??
???W?
WWWW?
W?W?W
?W?B?
W?WWB
8 5
B?WBW
B??WW
WWW?B
WBBWB
BW?WW
B?W?B
??WWB
BBW?B
10 4
WWWW
?...

output:

YES
WBWBBBW
BBWWBBW
WBBBBBB
WWWBWBB
WBBBBBB
BBWBWWB
BBBBBBB
YES
WWWWWB
WBWWWW
WWWWWW
WWWBWW
WWBBWW
WBBWWW
WBWWBW
WWWBBW
WWWBBW
WWBBWW
YES
WBWBWB
BBWBBB
YES
WWBWBBWB
YES
WB
WW
BW
BB
BW
YES
WWWBB
WWWWW
WWBWB
WWWWW
WBWWW
WWWBB
WWWWB
NO
YES
WWWW
WWBB
WWBW
WWWW
WWWB
BWWW
WWBB
WWBW
WWWW
WBWB
YES
BWWBBB
BB...

result:

wrong answer ans finds the answer, but out doesn't (test case 7451)