Graph Decomposition
1170G6s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
6 91 22 31 32 42 54 53 53 65 6
Output
YES34 2 5 4 24 3 6 5 34 1 3 2 1
Sample 2of 3
Input
4 71 11 22 33 44 11 31 3
Output
YES32 1 15 1 4 3 2 13 1 3 1
Sample 3of 3
Input
4 81 11 22 33 44 12 41 31 3
Output
NO
58%
1170G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…