版本比较
题解:P4720 【模板】扩展卢卡斯定理/exLucas
正文
增加 6 行删除 6 行
267 行未改动全部展开2682692702712722722732742742752762772788 行未改动2872882892902912912922932942942952962972982982993003003013023033046 行未改动267 行未改动全部展开 if(pp>1){ p.push_back(pp); pc.push_back(pp); }} }long long exLucas(ll n,ll m,ll P){ if(n<m){ if(n<m){ return 0; } vector<int>p,pc; breakDown(P,p,pc);8 行未改动}main(){ /*freopen("test.in","r",stdin); freopen("test.out","w",stdout);*/
ios::sync_with_stdio(false); cin.tie(0);cout.tie(0);
long long n,m,P; cin>>n>>m>>P; cout<<exLucas(n,m,P)<<'\n';
cout.flush();
/*fclose(stdin); fclose(stdout);*/ return 0;}6 行未改动