Permutations
124B1400· specialist1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
6 4523727537523572353272537
Output
2700
Sample 2of 3
Input
3 3010909012
Output
3
Sample 3of 3
Input
7 550808366033719844911299944254350156
Output
20522
58%
124B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)