QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#447229#8523. Puzzle IIucup-team3215WA 1ms3812kbC++201.3kb2024-06-18 07:21:222024-06-18 07:21:22

详细

Test #1:

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

input:

6 3
BCCBCC
BBCBBC

output:

4
1 3
2 3
5 6
6 6

result:

ok moves = 4

Test #2:

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

input:

2 1
BC
BC

output:

2
1 1
2 1

result:

ok moves = 2

Test #3:

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

input:

2 1
BB
CC

output:

0

result:

ok moves = 0

Test #4:

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

input:

2 1
CC
BB

output:

0

result:

ok moves = 0

Test #5:

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

input:

3 1
CCC
BBB

output:

0

result:

ok moves = 0

Test #6:

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

input:

3 1
CBC
BCB

output:

2
1 2
2 2

result:

ok moves = 2

Test #7:

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

input:

3 2
BBB
CCC

output:

0

result:

ok moves = 0

Test #8:

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

input:

3 2
BCB
BCC

output:

2
3 1
1 1

result:

ok moves = 2

Test #9:

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

input:

4 2
CCCB
BBCB

output:

2
2 3
3 3

result:

ok moves = 2

Test #10:

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

input:

9 6
CCCBCCCBB
BBBCBBBCC

output:

6
2 4
3 4
3 7
4 7
9 7
1 7

result:

ok moves = 6

Test #11:

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

input:

21 3
CCCCBBCBCCCCCCCBCCCCC
BBCCBCBBBBBBBBBCBBBBB

output:

8
2 3
3 3
3 3
4 3
5 6
6 6
13 16
14 16

result:

ok moves = 8

Test #12:

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

input:

49 41
CBCCBCCBCCBCCBCCCBBCCBCBBCCCBBCCBCBCBCBCCCCBCBCCB
BCCCCBCBBBBCBCBBBBBCBBBBCCCCBCBBCBBCBBBBCBCBCBBBC

output:

28
3 2
4 2
5 2
6 2
8 2
9 2
10 2
11 2
15 3
16 3
20 7
21 7
24 8
25 8
27 13
28 13
33 17
34 17
34 17
35 17
38 17
39 17
40 17
41 17
43 18
44 18
49 20
1 20

result:

wrong answer The final sequences are not correct!