cf/mirror

Best Subsequence

CF
2026E2500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
3
0 0 0
4
1 0 1 2
1
5
8
7 1 48 14 13 8 7 6
Output
3
2
0
3
2026E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…