Permutation Oddness
2134F2900· international gm5s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
31 1 1 11 2 4 13 3 3 3
Output
0 0 0 8 8 8 00 0 0 8 32 126 184 244 156 72 18 0 0 0 00 0 0 8 56 424 1472 5760 12128 29376 40384 65232 59920 65232 40384 29376 12128 5760 1472 424 56 8 0
58%
2134F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)