QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#454362#8523. Puzzle IIucup-team171WA 0ms3828kbC++171.3kb2024-06-24 20:20:492024-06-24 20:20:50

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

6 3
BCCBCC
BBCBBC

output:

4
2 4
2 3
5 6
5 5

result:

ok moves = 4

Test #2:

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

input:

2 1
BC
BC

output:

2
2 2
2 1

result:

ok moves = 2

Test #3:

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

input:

2 1
BB
CC

output:

0

result:

ok moves = 0

Test #4:

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

input:

2 1
CC
BB

output:

0

result:

ok moves = 0

Test #5:

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

input:

3 1
CCC
BBB

output:

0

result:

ok moves = 0

Test #6:

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

input:

3 1
CBC
BCB

output:

2
2 3
2 2

result:

ok moves = 2

Test #7:

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

input:

3 2
BBB
CCC

output:

0

result:

ok moves = 0

Test #8:

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

input:

3 2
BCB
BCC

output:

2
1 2
1 1

result:

ok moves = 2

Test #9:

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

input:

4 2
CCCB
BBCB

output:

2
3 4
3 3

result:

ok moves = 2

Test #10:

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

input:

9 6
CCCBCCCBB
BBBCBBBCC

output:

6
4 5
4 4
4 8
4 7
1 8
1 7

result:

ok moves = 6

Test #11:

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

input:

21 3
CCCCBBCBCCCCCCCBCCCCC
BBCCBCBBBBBBBBBCBBBBB

output:

8
14 4
14 3
6 4
6 3
5 5
5 4
4 17
4 16

result:

ok moves = 8

Test #12:

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

input:

49 41
CBCCBCCBCCBCCBCCCBBCCBCBBCCCBBCCBCBCBCBCCCCBCBCCB
BCCCCBCBBBBCBCBBBBBCBBBBCCCCBCBBCBBCBBBBCBCBCBBBC

output:

38
9 3
9 2
7 3
7 2
6 3
6 2
2 3
2 2
1 4
1 3
49 8
49 7
48 9
48 8
46 14
46 13
46 18
46 17
43 18
43 17
43 18
43 17
42 18
42 17
40 19
40 18
40 21
40 20
37 23
37 22
35 27
35 26
32 29
32 28
29 30
29 29
26 34
26 33

result:

wrong answer The final sequences are not correct!