cf/mirror

Mike and Geometry Problem

CF
689E2000· candidate master3s256 MB⌨ stdin/stdout

Examples

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