QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#65348#5070. Check Pattern is BadflowerWA 101ms3444kbC++203.4kb2022-11-29 22:01:562022-11-29 22:01:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

YES
WB
WW
NO
YES
BWW
WWW
WWB

result:

ok ok (3 test cases)

Test #2:

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

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
BB
BW
WW
BB
YES
WW
WB
BB
BW
WW
BB
NO
NO
YES
B
W
W
B
B
W
W
W
B
W
YES
BWWW
WWWB
WWWW
WBBW
WWBB
BWWW
WWWB
WWWW
WBBW
BBWW
YES
WBW
WWW
WWB
BBB
WWW
WWW
WBW
WWW
YES
W
B
B
W
YES
WBWB
WWWB
YES
BBWBBB
BBWWWB
YES
WBWWB
YES
BWWBBW
WWBBBB
BBBWBB
WBWWWW
YES
W
YES
BWB
BBB
WBW
BBB
WWB
WBB
BBW
BWW...

result:

ok ok (10000 test cases)

Test #3:

score: -100
Wrong Answer
time: 101ms
memory: 3420kb

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
B
W
W
W
W
B
B
W
YES
BWWB
WWBB
WWWB
BWBB
BWWW
BBWB
WWWW
WBWW
WBWB
YES
BW
BB
BB
YES
WWWBWWB
WWWBBWW
NO
NO
YES
WWB
BWB
BBB
WWW
WWW
YES
BWWWWWBWW
WWWBWWBBW
WBWBWBBBW
WWWWWWBBB
WWWWBWWBW
WWBWWWWWW
WWWWWBWWB
YES
WBWWBWW
BBBWWWB
WWBWWWW
BWWWWWB
BBBBWWB
WBBBWBB
WWWWWWW
WWWWBWW
BWWBBWW
YES
WB
BB
W...

result:

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