Strange Permutation
1470E3200· legendary gm3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
23 1 91 2 31 12 13 11 22 23 21 32 33 36 4 46 5 4 3 1 21 13 141 592 6
Output
12313221314-15
Sample 2of 2
Input
112 4 21 2 3 4 5 6 7 8 9 10 11 122 202 21
Output
22
58%
1470E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…