Small Permutation Problem (Easy Version)
1909F12200· master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
551 2 3 4 560 2 2 2 4 660 1 3 4 5 561 2 3 2 4 6150 0 1 1 1 2 3 4 5 6 7 9 11 13 15
Output
1400532305727
58%
1909F1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)