p3807专题

P3807[模板]卢卡斯定理

需要特判n < m的时候,return 0 #include<bits/stdc++.h>#define endl '\n'#define int int64_tusing namespace std;const int N = 1e6 + 5;int f[N], g[N],mod;int qpow(int a, int b) {int res = 1;while (b) {if (