cf/mirror

A Leapfrog in the Array

CF
949B1700· expert2s512 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 3
2
3
4
Output
3
2
4
Sample 2of 2
Input
13 4
10
5
4
8
Output
13
3
8
9
949B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)