Wonderful Permutation
1712A800· newbie1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
43 12 3 13 31 2 34 23 4 1 21 11
Output
1020
58%
1712A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
43 12 3 13 31 2 34 23 4 1 21 11
1020