QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#445721#8523. Puzzle IIucup-team3807WA 1ms4448kbC++23998b2024-06-16 10:36:202024-06-16 10:36:21

詳細信息

Test #1:

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

input:

6 3
BCCBCC
BBCBBC

output:

4
2 4
1 4
4 1
3 1

result:

ok moves = 4

Test #2:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

2 1
BC
BC

output:

2
2 2
1 2

result:

ok moves = 2

Test #3:

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

input:

2 1
BB
CC

output:

0

result:

ok moves = 0

Test #4:

score: 0
Accepted
time: 0ms
memory: 3824kb

input:

2 1
CC
BB

output:

0

result:

ok moves = 0

Test #5:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

3 1
CCC
BBB

output:

0

result:

ok moves = 0

Test #6:

score: 0
Accepted
time: 0ms
memory: 3872kb

input:

3 1
CBC
BCB

output:

2
3 2
2 2

result:

ok moves = 2

Test #7:

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

input:

3 2
BBB
CCC

output:

0

result:

ok moves = 0

Test #8:

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

input:

3 2
BCB
BCC

output:

2
1 2
1 1

result:

ok moves = 2

Test #9:

score: -100
Wrong Answer
time: 0ms
memory: 4036kb

input:

4 2
CCCB
BBCB

output:

2
5 2
4 2

result:

wrong answer Integer 5 violates the range [1, 4]