搞清楚 费马小定理的适用条件 #include <cmath>#include <cstdio>#include <iostream>#include <algorithm>using namespace std;#define LL long longconst int MO = 999911659;const int MO1= 999911658; int t[5]={0
题目描述 Luogu2480 题意简述:给定 n , G n,G n,G,求 G ∑ d ∣ n C n d mod 999911659 G^{\sum\limits_{d|n}C_n^d}\text{mod}\ 999911659 Gd∣n∑Cndmod 999911659 分析 若 G mod 999911659 = 0 G\ \text{mod}\ 999911659=0