Non-Intersecting Subpermutations
1861E2300· international master2s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
10 3
Output
71712
Sample 2of 3
Input
2 2
Output
2
Sample 3of 3
Input
1337 42
Output
524933698
58%
1861E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)