QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#465722#8523. Puzzle IIucup-team3684WA 0ms3828kbC++203.6kb2024-07-07 06:23:082024-07-07 06:23:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

6 3
BCCBCC
BBCBBC

output:

2
2 4
4 6

result:

ok moves = 2

Test #2:

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

input:

2 1
BC
BC

output:

1
2 1

result:

ok moves = 1

Test #3:

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

input:

2 1
BB
CC

output:

0

result:

ok moves = 0

Test #4:

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

input:

2 1
CC
BB

output:

0

result:

ok moves = 0

Test #5:

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

input:

3 1
CCC
BBB

output:

0

result:

ok moves = 0

Test #6:

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

input:

3 1
CBC
BCB

output:

1
2 2

result:

ok moves = 1

Test #7:

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

input:

3 2
BBB
CCC

output:

0

result:

ok moves = 0

Test #8:

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

input:

3 2
BCB
BCC

output:

2
1 2
1 1

result:

ok moves = 2

Test #9:

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

input:

4 2
CCCB
BBCB

output:

2
3 4
3 3

result:

ok moves = 2

Test #10:

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

input:

9 6
CCCBCCCBB
BBBCBBBCC

output:

3
4 4
2 8
2 5

result:

ok moves = 3

Test #11:

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

input:

21 3
CCCCBBCBCCCCCCCBCCCCC
BBCCBCBBBBBBBBBCBBBBB

output:

12
5 3
7 5
9 7
10 8
12 10
13 11
15 13
16 15
18 17
19 18
19 21
19 20

result:

ok moves = 12

Test #12:

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

input:

49 41
CBCCBCCBCCBCCBCCCBBCCBCBBCCCBBCCBCBCBCBCCCCBCBCCB
BCCCCBCBBBBCBCBBBBBCBBBBCCCCBCBBCBBCBBBBCBCBCBBBC

output:

28
2 2
6 3
8 4
9 5
20 10
20 9
23 11
23 10
26 16
26 15
31 20
31 19
33 20
33 19
37 20
37 19
39 20
39 19
41 21
41 20
47 23
47 22
49 25
49 24
4 29
4 28
8 30
8 29

result:

wrong answer The final sequences are not correct!