cf/mirror

Deducing Sortability

CF
1725D2900· international gm2s512 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
6 3
1
4
5
Output
17
1
3
4
Sample 2of 2
Input
1 0
Output
1
1725D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)