Twist the Permutation
1650D1300· pupil2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
363 2 5 6 1 433 1 285 8 1 3 2 6 4 7
Output
0 1 1 2 0 40 0 10 1 2 0 2 5 6 2
58%
1650D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)