cf/mirror

Another Permutation Problem

CF
1859C1200· pupil3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
2
4
3
10
20
Output
2
17
7
303
2529
1859C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)