acmsguru |
---|
Finished |
*" — white king,
K" — black knight,
B" — black bishop,
R" — black rook.
." — an empty space,
*" — white king,
K" — black knight,
B" — black bishop,
R" — black rook.
0. If it's impossible to capture all black pieces, output the only integer
-1.
sample input | sample output |
7 9 ......... ......... ......... ..R.K.R.. ......... ......... *........ | 9 |
Name |
---|