Permutation Problem (Hard Version)
1986G22500· grandmaster3s128 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
61121 232 3 152 4 1 3 5128 9 7 12 1 10 6 3 2 4 11 5151 2 4 6 8 10 12 14 3 9 15 5 7 11 13
Output
011393
58%
1986G2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)