cf/mirror

Train Hard, Win Easy

CF
1043E1900· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3 2
1 2
2 3
1 3
1 2
2 3
Output
3 0 3
Sample 2of 3
Input
3 3
1 2
2 3
1 3
1 2
2 3
1 3
Output
0 0 0
Sample 3of 3
Input
5 3
-1 3
2 4
1 1
3 5
2 2
1 4
2 3
3 5
Output
4 14 4 16 10
1043E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)