QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#432125#5070. Check Pattern is Badegypt_ioi2024_01WA 27ms3716kbC++233.3kb2024-06-06 19:14:452024-06-06 19:14:45

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

YES
WB
WW
NO
YES
BWW
WWW
BWB

result:

ok ok (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 27ms
memory: 3716kb

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
BB
WW
BB
YES
WB
WB
BB
BW
WW
WW
NO
NO
YES
B
W
W
B
B
W
W
W
B
B
YES
BBWW
WBWW
WWWW
BWWW
BWBW
WWWW
WWWB
BWWW
BWBW
BWWW
YES
WBW
WBW
WWW
WBW
WWW
WWW
BWB
BWW
YES
W
B
B
W
YES
BBBB
WBWB
YES
BBBBBB
BWWWWB
YES
WBWWW
YES
BWBBWB
WWBBBB
BBBWBB
WWWWWW
YES
B
YES
BWB
BBB
WBW
WBB
WWB
BBB
BBW
WBW...

result:

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