cf/mirror

Sorting by Subsequences

CF
843A1400· specialist1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
6
3 2 1 6 5 4
Output
4
2 1 3
1 2
2 4 6
1 5
Sample 2of 2
Input
6
83 -75 -49 11 37 62
Output
1
6 1 2 3 4 5 6
843A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…