cf/mirror

Block Sequence

CF
1881E1500· specialist2s256 MB⌨ stdin/stdout
#dp

Examples

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