cf/mirror

Shortest and Longest LIS

CF
1304D1800· expert3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
3 <<
7 >><>><
5 >>><
Output
1 2 3
1 2 3
5 4 3 7 2 1 6
4 3 1 7 5 2 6
4 3 2 1 5
5 4 2 1 3
1304D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…