cf/mirror

Shift and Reverse

CF
1907F1800· expert256 MB⌨ stdin/stdout

Examples

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