cf/mirror

Increasing Sequence

CF
1882A800· newbie1s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 1multi-test • hover to link
Input
3
5
1 3 2 6 7
4
2 3 4 5
1
1
Output
8
4
2
1882A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)