codeforces 1091DNew Year and the Permutation Concatenation 组合数

NoSuchKey