cf/mirror

Pairs

CF
1169B1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 6
1 2
1 3
1 4
2 3
2 4
3 4
Output
NO
Sample 2of 3
Input
5 4
1 2
2 3
3 4
4 5
Output
YES
Sample 3of 3
Input
300000 5
1 2
1 2
1 2
1 2
1 2
Output
YES
1169B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…