Beautiful Permutation
2162D1400· specialist2s256 MB⇄ interactive
Examples
Sample 1of 1
Input
23454889
Output
1 1 22 1 2! 2 21 2 42 1 32 3 4! 2 4
58%
2162D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
23454889
1 1 22 1 2! 2 21 2 42 1 32 3 4! 2 4