cf/mirror

Permutation Counting

CF
1671F2700· international gm4s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
10 6 4
7 3 1
163316 11 7
136373 11 1
325902 11 11
Output
465
12
986128624
7636394
57118194
1671F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)