Rosetta Problems

Count Permutations Many Times

https://atcoder.jp/contests/jsc2019-final/tasks/jsc2019_final_f