cf/mirror

Permutation Game

CF
818B1600· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 5
2 3 1 4 4
Output
3 1 2 4
Sample 2of 2
Input
3 3
3 1 2
Output
-1
818B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)