Interval-Free Permutations
1089I2600· international gm1.5s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
4 9982443531459
Output
12628146
Sample 2of 2
Input
1 43712229720
Output
67777575
58%
1089I.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)