cf/mirror

Almost Identity Permutations

CF
888D1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
4 1
Output
1
Sample 2of 4
Input
4 2
Output
7
Sample 3of 4
Input
5 3
Output
31
Sample 4of 4
Input
5 4
Output
76
888D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)