QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#835154#9926. Flipping Pathsucup-team5015#WA 1ms3900kbC++2032.3kb2024-12-28 10:06:432024-12-28 10:06:44

详细

Test #1:

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

input:

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

output:

YES
4
DDRR
RDRD
RDRD
RRDD
YES
3
RRRR
RRRR
RRRR
YES
2
RD
RD
NO

result:

ok ok (4 test cases)

Test #2:

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

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
0
NO
NO
YES
1
R
YES
0
NO
NO
YES
1
D
YES
2
RR
RR
NO
NO
NO
NO
NO
NO
YES
1
RR
YES
2
RD
RD
NO
YES
1
RD
NO
YES
1
DR
NO
YES
2
DR
RD
NO
NO
YES
2
DR
RD
NO
YES
1
DR
NO
YES
1
RD
NO
YES
2
RD
RD
YES
2
DD
DD
NO
NO
NO
NO
NO
NO
YES
1
DD
YES
2
RRR
RRR
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
YES
3
RRR
RRR
RRR
...

result:

ok ok (323 test cases)

Test #3:

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

input:

278
2 4
BWBW
WWBB
2 4
BWBW
WWBW
2 4
BWBW
WWWB
2 4
BWBW
WWWW
2 4
BWWB
BBBB
2 4
BWWB
BBBW
2 4
BWWB
BBWB
2 4
BWWB
BBWW
2 4
BWWB
BWBB
2 4
BWWB
BWBW
2 4
BWWB
BWWB
2 4
BWWB
BWWW
2 4
BWWB
WBBB
2 4
BWWB
WBBW
2 4
BWWB
WBWB
2 4
BWWB
WBWW
2 4
BWWB
WWBB
2 4
BWWB
WWBW
2 4
BWWB
WWWB
2 4
BWWB
WWWW
2 4
BWWW
BBBB
2 ...

output:

NO
NO
NO
NO
NO
NO
YES
3
RRRD
RRDR
DRRR
NO
NO
NO
NO
NO
NO
NO
NO
NO
YES
4
RRDR
RDRR
RDRR
DRRR
NO
NO
NO
YES
3
DRRR
RDRR
RDRR
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
YES
4
DRRR
RDRR
RDRR
RRRD
NO
NO
YES
4
DRRR
RDRR
RDRR
RRRD
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
NO
YES
3
DRRR
RDRR
RDRR
NO
NO
NO
YES
4
RRDR
R...

result:

wrong answer Jury has answer but participant has not. (test case 165)