Longest Subsequence
632D2100· master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
7 86 2 9 2 7 2 3
Output
6 51 2 4 6 7
Sample 2of 2
Input
6 42 2 2 3 3 3
Output
2 31 2 3
58%
632D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
7 86 2 9 2 7 2 3
6 51 2 4 6 7
6 42 2 2 3 3 3
2 31 2 3