cf/mirror

Increasing Subsequences

CF
1922E1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
2
5
13
37
Output
1
0
3
0 1 0
5
2 2 3 4 2
7
-1 -1 0 0 2 3 -1
1922E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)