随笔分类 -  数学-扩展欧几里得

摘要: 阅读全文
posted @ 2021-10-04 23:51 上官书房 阅读(34) 评论(0) 推荐(0)
摘要:1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 inline ll re_ad() { 5 char ch=getchar(); ll x=0,f=1; 6 while(ch<'0' || ch>'9 阅读全文
posted @ 2021-10-03 22:35 上官书房 阅读(49) 评论(0) 推荐(1)
摘要:1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 const ll N=51; 5 ll n,m,a[N],lj[N],ans,sum,len,tmp; 6 7 inline ll re_ad() { 阅读全文
posted @ 2021-09-07 22:19 上官书房 阅读(44) 评论(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)