GeometricProgression

Geometric Progression

分治+提取公因式即可。

注意 \(M=1\) 的情况,这里卡了很久。

AC

posted @ 2023-07-30 21:26  wscqwq  阅读(3)  评论(0编辑  收藏  举报