2022年12月10日
摘要: Lucas定理,是用来求C_m_n%p的 C_m_n=C_m%p_n%p*C_m/p_n/p%p; 代码: #include<bits/stdc++.h> using namespace std; long long t,n,m,p; long long ksm(long long x,long l 阅读全文
posted @ 2022-12-10 15:34 gui_ling 阅读(21) 评论(0) 推荐(0)
  2022年11月17日
摘要: #include <bits/stdc++.h> using namespace std; int d[100011],n,len,a[100011]; int main(){ // freopen(".in","r",stdin); // freopen(".out","w",stdout); s 阅读全文
posted @ 2022-11-17 22:09 gui_ling 阅读(28) 评论(0) 推荐(0)