随笔分类 -  数学-逆元

摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=2e5+11,M=4e5+11; 4 int n,ans,siz[N]; 5 int to[M],nxt[M],id[M],edge,head[N]; 6 7 inline 阅读全文
posted @ 2021-10-02 14:39 上官书房 阅读(32) 评论(0) 推荐(0)
摘要:Update2021.8.1:更新了BSGS板子的代码,更加简洁易懂的版本 1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 ll p,a,b; 5 map<ll,ll> mp; 6 7 inline 阅读全文
posted @ 2021-07-30 23:53 上官书房 阅读(66) 评论(0) 推荐(1)