cf/mirror

Graph Without Long Directed Paths

CF
1144F1700· expert2s256 MB⌨ stdin/stdout

Examples

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