cf/mirror

Treasure Hunting

CF
1201D2100· master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3 3 3 2
1 1
2 1
3 1
2 3
Output
6
Sample 2of 3
Input
3 5 3 2
1 2
2 3
3 1
1 5
Output
8
Sample 3of 3
Input
3 6 3 2
1 6
2 2
3 4
1 6
Output
15
1201D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)