cf/mirror

The Third Problem

CF
1699C1700· expert1s256 MB⌨ stdin/stdout

Examples

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