cf/mirror

T-decomposition

CF
237D2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2
1 2
Output
1
2 1 2
Sample 2of 3
Input
3
1 2
2 3
Output
2
2 1 2
2 2 3
1 2
Sample 3of 3
Input
4
2 1
3 1
4 1
Output
3
2 2 1
2 3 1
2 4 1
1 2
2 3
237D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…