cf/mirror

Twist the Permutation

CF
1650D1300· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
6
3 2 5 6 1 4
3
3 1 2
8
5 8 1 3 2 6 4 7
Output
0 1 1 2 0 4
0 0 1
0 1 2 0 2 5 6 2
1650D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)