Rosetta Problems

Prefix Sum Permutation

https://onlinejudge.u-aizu.ac.jp/problems/3419