QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#735753#2651. Pixelspokorfanclub#AC ✓6ms4352kbC++203.5kb2024-11-11 21:32:392024-11-11 21:32:43

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1 2
B W

output:

IMPOSSIBLE

result:

ok 

Test #2:

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

input:

5 22
B B B W B W W W B W B B B W B B B B W B B B
B W W W B W W W B W B W W W B W W B W B W W
B B B W B W B W B W B B B W B B B B W B W W
W W B W B W B W B W B W W W B W B W W B W W
B B B W W B W B W W B B B W B W W B W B B B

output:

A P P A P P A A P A A P P P A A P A P A P A 
A P P A P A P P A P A P A A A A A P P P A A 
A P P A P P A A A P P A A P P A A P A P A A 
A A A A A A P P A P P P A A P A A P P P P A 
A P A A A A P A P P P A P A P P A P P P A P 

result:

ok 

Test #3:

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

input:

1 2
B B

output:

A P 

result:

ok 

Test #4:

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

input:

4 4
B B W W
B B W B
B B W B
W B W B

output:

A A A A 
P P A A 
P P P P 
A P P P 

result:

ok 

Test #5:

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

input:

4 4
B B W W
B B W B
B B W W
W B W B

output:

IMPOSSIBLE

result:

ok 

Test #6:

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

input:

4 200
B B B W B B W B B B B W B W W W W W B W W B W B W B B W W W W B B B B W W W B B B B B B B B B B W B W B W W W W B B W W W W B W B W B W W W W W W W B B W W B W W W W W W W B W W B B W B W B B W B W B W B W B W B W W W B W W B B W B W W W B B W B B W B B W B W W B B B B B W W B B B W W W B W W ...

output:

P P A P P P P P A A P P A P A P A P A A A A P A A A P P A A A A A P P A P P P P P P P P A A P A P P A P P A A A P P P P P P A A P A P A P P A P P P P A P P A P P A A P A A P P P P A A A P P P A P P A P P P P P P P A A A A P P A A P A P A A A P P P P A A A A P A P A A P A P P A P A P A P P P P P P A ...

result:

ok 

Test #7:

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

input:

40 200
B B W B W W W W W B W B W B W B B W W B W W W B W W W B W B B B W W W B B B B W W W B W B B W W W W W B W W W W W W B W W B W W W W B B W W W B W B W B B B W W B W W B W W B B W B W B B B W W B B W B W B W B B B B B B W B W B B B W B B B B W W W B B W B B B W W W W B B B B B W W B W B W B B B...

output:

A P P P A P A P A A P A A A A P P P A A P P A A P P P P P P P A A P P A P A P P A A A A A A A P P P P P A P A P A P P A A A P P P P A P P A A A A P A P P P A A P P A A P A A A A A A P P A A A P P P P A P A A P A A A A P A P P P P A P A P A A A P A A A P P P A P P A A A A P P A P P P A A A A A P P P ...

result:

ok 

Test #8:

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

input:

200 200
W W W W W B B W B B W W B B W B W B W W W B W W B B B W W W B W W B B B B W B W B B B B B W W B W B W W B W B B W B B B W W B B B W B W W W W W W W B B W B W B W W B W W B B B B B B W W W W B W B W W B B B B W B B B W W W W B W B W W B W B B B W B W B B W W B B B B B B W B W B B W W B B B B ...

output:

A A A P P P A A A A P A P A P P A P A P P A A P P A P A A P P P P P P A P P A P P P A A P P P A P A A A A P A P A A P P P A P A P A A P P P A A A A A P A A A A A A A A P P P P P A A P P P A A A P A P P A A A A P A A P P A A P A P P A A P A P P A A P P A A P P A A P A A P P A A A P P A A P P A P A A ...

result:

ok 

Test #9:

score: 0
Accepted
time: 3ms
memory: 3920kb

input:

250 250
W B B W W W W W B B W B B B B W B W B W W W W W B W W B B W B B B W W B W W B B B W W B W B W W W B W B W W W W B B W B B B B W B B W B W W B W B W B B W W W B W W B B W B W W W W W W B B B W B W B B B W W W B W W W W W W B B B B B B W B B W W W W W W W B B W B B B W B B B W B B W W W B W W ...

output:

P P A A P A A A P A A P P P A A P P P A A A P A P A P P P P P P P P P P P P P A A A P P P P P A P A P P A P A A A P A P A P A A A P A P P P A P P P A A A A A A A P A P P A A P P A A P A A A A A P P P A P A A A P P P P P P P A P P P P A A P A P A P A A P P A A P P A P A A A A A A P A P P P P P A P P ...

result:

ok 

Test #10:

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

input:

4 250
W B W W B W B W W B W B W B B W W B W W W B B B B W W B W B W W B W W B B B W W B W B B B B W B B B W W B W W W W W W W W W W W B W B B B B W B W B W B W W W B W W W W W B B W B B W W W B B B W B W B B W W W B B W B W B B B W W W W B B W W B B B W W W B B B W W W B B B W W B B B B B W B B W B ...

output:

P A P A A A A P A P P A P A P A P P A A A P P A P P A A A A A P A A A P P P A P P A P P P A P P P A A A P A P A P P P A A P A A A P A A A P P P A P P P P A A P A P A A P P P P A P P A P P P P P P P A P P P P A A P A A A P A P P P A P A P P A A P A A A P A A P A A P A A A P P P P A P A A P P A P P A ...

result:

ok 

Test #11:

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

input:

250 4
B W B W
W B W W
W B W B
W B W B
B B W B
B W W W
B W W W
W B B B
B B W W
B W B W
B B W B
W W W W
B W B B
B W B B
W B W W
W W B B
B B B B
W B B W
W W B B
B W B W
B W B W
B W W W
B B B B
W W B W
W W W W
W W W W
W W W B
B B B W
W W B W
W B B B
W B W B
W W B W
B W B B
W W B B
W B B W
W B B B
B W W ...

output:

A P P P 
A A A A 
A A P P 
A A A P 
A P A P 
A A A P 
P P P A 
P P A A 
P A P P 
P A A A 
P P A P 
A P A A 
A A P P 
P A P P 
A A A A 
P P P P 
A P A P 
P P A P 
A A P A 
P A A P 
A P P P 
P A A P 
A A A A 
A P P A 
P A P P 
P P P A 
P P P A 
P A P A 
P A P P 
A A A A 
P P A A 
A P P P 
A P A A 
A A...

result:

ok 

Test #12:

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

input:

5000 4
B B B W
W B W W
B B W W
W W W B
W W B W
W B W B
W W B W
W B W B
W B W B
W W B W
W W B W
B B B B
B W W W
W B B W
B W B B
B W W W
B B W W
B B W W
B W W B
B B W W
W B B W
W B B W
B B B W
B B W W
W B B B
B W W W
B W B W
B W B B
B B W B
B W W B
W W B W
B B W B
W W B B
B B W W
W B B W
B W W B
B B W...

output:

A P P A 
A P P P 
P A A A 
A P P P 
A A P P 
A A A P 
A P A P 
P P P A 
A P A P 
A P P A 
P P P A 
A A A P 
A A P A 
P P P A 
A A A P 
A P P A 
A A A A 
P A P A 
A P P P 
P A A P 
A P A A 
A A A P 
A A A P 
P P A A 
P P P P 
P P A P 
A P P A 
P P P A 
P A A A 
P P P P 
A P P P 
A P P P 
A A A A 
A P...

result:

ok 

Test #13:

score: 0
Accepted
time: 6ms
memory: 4136kb

input:

5000 20
B W W W W W W B W W B B W B W B B W W W
B B B W W W W W W B B W B B B W W W B W
W W W W W B W B W B B W W W W B W B W B
B W W B W W B W W W W B W B W B W B W B
W B W B W B B W B B B B B B B B W W W B
W W B B B W W W W W W W B W W W W W W B
W B B W B B W B B B W B B W W W B B W B
B W W W W B ...

output:

A A A A P A A A A A P A P P P P A A A P 
P A A P P P A P A P A P A A P P A A P P 
A A A A A A A P A A A P P P A P P P P P 
P A A P P A P P P A A P P A P A P A A A 
A P P P A A P A A P P A P A P A A P P A 
A P P A A A P A P P P A P P P A A A A A 
P P A P P P A A A A P A A P P P A P P P 
A A A A A P A...

result:

ok 

Test #14:

score: 0
Accepted
time: 5ms
memory: 4352kb

input:

1000 100
W W B B B W B B B W W W B B W B B W B W B W W W B W W B W B W W W B B W W B W W B B B W W W B W B B B W W B W W W B B B B B W B B B W B B W B W W B W B W W W B B B W B B W B B B B W B B B W B B B W B
B B B B B B W W B W B B W W B B W B B B W B W B W B W B B B B B W W W W W B W B B W W W W B...

output:

A A A P A A P P P A A P P P A P P P P P P A A A A P P A A A P A A P P P P P P A P A P P A P A A P A A A P A A P P P P P P A P P P A P A A A P A P A A A P A A P P P A A A P A P P A A A P P A A P P P A 
A A A A A P P A P P P A A P A P A P A P P P A A A A A A A A P P P P A P P A A A A P P A A P A P A A...

result:

ok 

Test #15:

score: 0
Accepted
time: 6ms
memory: 4128kb

input:

250 400
W W W W W W B W B W W B B B B W W W B W W B B B W W B W B W B W W W B B W W W B B B B W W W B B B B W B W W B B W W W B B B W B W B B B B W B W W B B W B W B W B W B B B B B W W W W W B B W W B W B B W W W B B B B W W W W W B B W W B W W B B B B W W B W W W B W W W B W B B W B W B W W B B W ...

output:

A A P A A A P P A P A P A A A P A P P A A A P A P P A P P A P P A P A P A P A P P P P A A A P A P A A A P P P A P A A P P A A P P P A P A P P A P P P A P A P A A A A A A A A P P P A P A P A P A A P P P P A A P A A A A P A P A A P A A A P A A A A P P P P P P A A A P P P A A P P P A P A A P P A A P P ...

result:

ok 

Test #16:

score: 0
Accepted
time: 5ms
memory: 4332kb

input:

316 316
B W W B B W B W B W B B W W W B W B W W W W B W B B W B W B B W W B B B B W W B W W B B W B W W B W B B B B W B B B W B B W B W B W W W B W B W W B W B B W W W B B B B B B B W W W B B W W W W B B B B W B W W W W W B B B W W B W B W B B B W W W W W B W B B B B B B B B B B W W W W B W B W B B ...

output:

P P A A P P P A P P A A P A A P P A P P P P P P A A A A P P A A P A P A P A A A A A P P P A P A A A A P P P P A A P A A A P A P P P P A P P A A P A A A A A A A P A A A A A A A P A P P P P A A P P P P A P P P A A P A A P A A A P P P A P P A P P P A A A A P A P P A A P A P A P P A P A A A A P A A P P ...

result:

ok