cf/mirror

Dungeons and Candies

CF
436C1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2 3 3 2
A.A
...
A.a
..C
X.Y
...
Output
14
1 0
2 1
3 1
Sample 2of 3
Input
1 1 4 1
A
.
B
.
Output
3
1 0
2 0
4 2
3 0
Sample 3of 3
Input
1 3 5 2
ABA
BBB
BBA
BAB
ABB
Output
11
1 0
3 1
2 3
4 2
5 1
436C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…