UVA — 13002 — Just Some Permutation 5
Can anyone please tell me the process how to solve this problem .
link : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=4890
Codeforces Round 1096 Solution Discussion