Anton and Permutation
785E2200· master4s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 44 52 42 52 2
Output
1433
Sample 2of 3
Input
2 12 1
Output
1
Sample 3of 3
Input
6 71 43 52 33 33 62 15 1
Output
567710118
58%
785E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)