QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#835542#9926. Flipping Pathsucup-team5323#WA 1ms3912kbC++144.6kb2024-12-28 12:47:372024-12-28 12:47:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
3 3
WBB
BWB
BBW
1 5
WWWWW
2 2
BB
BB
4 1
W
B
B
W

output:

YES
398
RRDD
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DDRR
DD...

result:

ok ok (4 test cases)

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 3912kb

input:

323
1 2
BB
1 2
BW
1 2
WB
1 2
WW
2 1
B
B
2 1
B
W
2 1
W
B
2 1
W
W
1 3
BBB
1 3
BBW
1 3
BWB
1 3
BWW
1 3
WBB
1 3
WBW
1 3
WWB
1 3
WWW
2 2
BB
BB
2 2
BB
BW
2 2
BB
WB
2 2
BB
WW
2 2
BW
BB
2 2
BW
BW
2 2
BW
WB
2 2
BW
WW
2 2
WB
BB
2 2
WB
BW
2 2
WB
WB
2 2
WB
WW
2 2
WW
BB
2 2
WW
BW
2 2
WW
WB
2 2
WW
WW
3 1
B
B
B
3 ...

output:

YES
398
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
...

result:

wrong answer cell (1,2) contains different color with (1,1) after all ops. (test case 11)