QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#432124#5070. Check Pattern is Badegypt_ioi2024_01WA 25ms3680kbC++233.3kb2024-06-06 19:06:412024-06-06 19:06:43

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

YES
WB
BB
NO
YES
BWB
WWW
WWB

result:

ok ok (3 test cases)

Test #2:

score: 0
Accepted
time: 21ms
memory: 3632kb

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
WB
BB
YES
BW
BB
BW
BW
WW
BB
NO
NO
YES
B
W
W
B
B
W
W
W
B
B
YES
BBWW
WWWW
WWWB
BWWW
WWBW
WWWW
WBWW
WWWW
BWWW
BBWW
YES
WBW
WWW
WBW
WBB
WWW
WBW
BBB
WWB
YES
W
B
B
B
YES
WBWB
WBBB
YES
BBWBBB
BWWWWB
YES
WBWWW
YES
BWBBBB
WWBBWB
BBBWWW
WBWWWW
YES
B
YES
BWB
BBB
WBB
WBB
WWB
BBB
BWW
BBB...

result:

ok ok (10000 test cases)

Test #3:

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

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
B
W
W
B
B
B
B
B
W
YES
BBBW
WWBW
WWWW
BWWB
BWWW
BBWW
WWWW
BWWB
BBWB
YES
WW
BB
BB
YES
BWBBWWB
WWWWWWW
NO
NO
YES
WWB
BWB
BBB
WWW
WWB
YES
BWWWWWWBW
BWWBWWBBB
WWWWWBBWW
WWWWWBBBB
BWBWWWBBW
BWWWWWBWW
WWBWWWWWB
YES
WBWWBWW
BBBWWWB
BWWWWWW
BBWWWWW
WBWBWWB
WBWBWBB
WWWWWWW
WWWWBWW
BWWWBWW
YES
WW
WB
W...

result:

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