cf/mirror

Beautiful Sequence Returns

CF
2075F3000· legendary gm2s256 MB⌨ stdin/stdout

Examples

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