cf/mirror

Longest Subsequence

CF
632D2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
7 8
6 2 9 2 7 2 3
Output
6 5
1 2 4 6 7
Sample 2of 2
Input
6 4
2 2 2 3 3 3
Output
2 3
1 2 3
632D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)