QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#486737#8523. Puzzle IIucup-team3261#WA 2ms10860kbC++205.7kb2024-07-21 23:58:362024-07-21 23:58:37

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

6 3
BCCBCC
BBCBBC

output:

4
5 4
5 3
2 6
2 5

result:

ok moves = 4

Test #2:

score: 0
Accepted
time: 2ms
memory: 10584kb

input:

2 1
BC
BC

output:

2
2 2
2 1

result:

ok moves = 2

Test #3:

score: 0
Accepted
time: 2ms
memory: 10568kb

input:

2 1
BB
CC

output:

0

result:

ok moves = 0

Test #4:

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

input:

2 1
CC
BB

output:

0

result:

ok moves = 0

Test #5:

score: 0
Accepted
time: 2ms
memory: 10860kb

input:

3 1
CCC
BBB

output:

0

result:

ok moves = 0

Test #6:

score: 0
Accepted
time: 2ms
memory: 10572kb

input:

3 1
CBC
BCB

output:

2
2 3
2 2

result:

ok moves = 2

Test #7:

score: 0
Accepted
time: 2ms
memory: 10656kb

input:

3 2
BBB
CCC

output:

0

result:

ok moves = 0

Test #8:

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

input:

3 2
BCB
BCC

output:

2
1 2
1 1

result:

ok moves = 2

Test #9:

score: 0
Accepted
time: 2ms
memory: 10792kb

input:

4 2
CCCB
BBCB

output:

2
3 4
3 3

result:

ok moves = 2

Test #10:

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

input:

9 6
CCCBCCCBB
BBBCBBBCC

output:

6
8 5
8 4
7 8
7 7
1 16
1 15

result:

wrong answer Integer 16 violates the range [1, 9]