cf/mirror

Sweepstake

CF
1571D1800· expert2s256 MB⌨ stdin/stdout

Examples

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