Swapping Problem
1513F2500· grandmaster2s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
55 4 3 2 11 2 3 4 5
Output
4
Sample 2of 2
Input
21 34 2
Output
2
58%
1513F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
55 4 3 2 11 2 3 4 5
4
21 34 2
2