cf/mirror

Matchmaker

CF
159B1100· newbie3s256 MB⌨ stdin/stdout

Examples

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