cf/mirror

Permutation Oddness

CF
2134F2900· international gm5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
1 1 1 1
1 2 4 1
3 3 3 3
Output
0 0 0 8 8 8 0
0 0 0 8 32 126 184 244 156 72 18 0 0 0 0
0 0 0 8 56 424 1472 5760 12128 29376 40384 65232 59920 65232 40384 29376 12128 5760 1472 424 56 8 0
2134F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)