cf/mirror

Multi-Subject Competition

CF
1082C1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
6 3
2 6
3 6
2 5
3 5
1 9
3 1
Output
22
Sample 2of 3
Input
5 3
2 6
3 6
2 5
3 5
1 11
Output
23
Sample 3of 3
Input
5 2
1 -1
1 -5
2 -1
2 -1
1 -10
Output
0
1082C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)