cf/mirror

Burglar and Matches

CF
16B900· newbie0.5s64 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
7 3
5 10
2 5
3 6
Output
62
Sample 2of 2
Input
3 3
1 3
2 2
3 1
Output
7
16B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)