cf/mirror

Shorten the Array

CF
2093G1900· candidate master2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
5 0
1 2 3 4 5
5 7
1 2 3 4 5
5 8
1 2 3 4 5
5 7
3 5 1 4 2
5 3
3 5 1 4 2
6 71
26 56 12 45 60 27
Output
1
2
-1
4
2
-1
2093G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…