bzoj 3240 (洛谷P1397): [Noi2013]矩阵游戏 (欧拉定理、数学)

NoSuchKey