cf/mirror

Game with Chips

CF
1327C1600· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 3 2
1 2
2 1
3 3
3 2
Output
3
DRD
Sample 2of 2
Input
5 4 3
3 4
3 1
3 3
5 3
1 3
1 4
Output
9
DDLUUUURR
1327C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)