cf/mirror

Problems for Round

CF
673B1300· pupil2s256 MB⌨ stdin/stdout

Examples

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