2020牛客暑期多校训练营(第六场)——K K-Bag

2020牛客暑期多校训练营(第六场)——K K-Bag 题目描述 A sequence is called kk-bag, if and only if it is put in order by some (maybe one) permutations of 1 to k. For example, 1,2,3,2,1,3,3,2,1 is a valid 33-bag sequence. R
相关文章
相关标签/搜索