QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#433066#5070. Check Pattern is Badegypt_ioi2024_11WA 52ms3836kbC++233.4kb2024-06-07 23:30:122024-06-07 23:30:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

YES
BW
BW
NO
YES
BWB
WWW
WWB

result:

ok ok (3 test cases)

Test #2:

score: 0
Accepted
time: 52ms
memory: 3696kb

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
WW
BB
YES
WB
BB
BW
BW
WW
BB
NO
NO
YES
B
W
W
B
B
W
W
W
B
W
YES
WWWW
WBWB
WWWW
WWWW
WWBW
WWBW
WWWW
WWBW
BBBW
BBBW
YES
WBW
WWW
BWB
WWB
WWW
WBW
BBB
BWW
YES
W
B
B
W
YES
WBWB
WBBB
YES
BBWBBB
WBWWWB
YES
WBWBW
YES
BWWBWB
WWBBWB
BBBWWB
WBWWWW
YES
B
YES
BWB
BBB
WBB
WBB
WWB
WBB
BBW
WBB...

result:

ok ok (10000 test cases)

Test #3:

score: -100
Wrong Answer
time: 47ms
memory: 3748kb

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
B
B
W
B
W
B
W
YES
BBWW
WWWB
WWWB
WWWB
BBWW
BBWB
WWWW
BBWB
WWWW
YES
WW
WB
BB
YES
BWWBWWB
BBWBWWW
NO
NO
YES
WWB
BWW
BBB
WBW
WWW
YES
BWBWWWBBB
WWWWWWWBB
WWBBWBWBW
BWWWWWWBB
WWBBWWWWW
BWWWWWWWW
BWBBWBWWB
YES
WBWWWWW
BBBWWBB
BWWWWWW
BWWWWBW
BBBBWWW
WWBBWBB
WWWWWWB
WWWWWWB
BWWBBWW
YES
WW
BB
W...

result:

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