AtCoder Beginner Contest 156 E Roaming 快速幂+乘法逆元+排列组合

NoSuchKey