cf/mirror

Pawn

CF
41D1900· candidate master2s256 MB⌨ stdin/stdout
#dp

Examples

Sample 1of 3
Input
3 3 1
123
456
789
Output
16
2
RL
Sample 2of 3
Input
3 3 0
123
456
789
Output
17
3
LR
Sample 3of 3
Input
2 2 10
98
75
Output
-1
41D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)