QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#272391#5070. Check Pattern is BadliangbowenWA 25ms3620kbC++143.0kb2023-12-02 17:05:572023-12-02 17:05:58

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

YES
BB
BW
NO
YES
BWW
WWW
WWB

result:

ok ok (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 25ms
memory: 3612kb

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
BB
WB
BB
YES
WW
WB
BB
BW
WW
WB
NO
NO
YES
B
W
B
B
B
W
W
W
B
B
YES
BBWW
WWWW
WWWW
BWWW
WWWB
BWWW
WWWW
BWBW
BBBW
BWBW
YES
WBW
WBW
WBW
WBB
WBW
WBW
BBB
WWB
YES
W
B
W
B
YES
BBBB
WBBB
B??BB?
??W?WB
YES
WBWBW
YES
BWWWWW
WWBWWB
BBBWWB
WWWWWW
YES
W
NO
NO
YES
BWWBBW
YES
BBBB
YES
BBBWBWW
B...

result:

wrong answer Token parameter [name=yesno] equals to "B??BB?", doesn't correspond to pattern "YES|NO" (test case 10)