Yet Yet Another Permutation Problem
1936E3400· legendary gm5s1024 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
622 131 2 333 1 242 4 1 353 5 1 4 2156 13 2 8 7 11 1 3 9 15 4 5 12 10 14
Output
132418424488915
58%
1936E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)