随笔分类 -  数学-辗转相除法

摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 inline int re_ad() { 4 char ch=getchar(); int x=0,f=1; 5 while(ch<'0' || '9'<ch) { if(ch=='-') f=-1 阅读全文
posted @ 2021-10-04 22:02 上官书房 阅读(36) 评论(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)
摘要: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 上官书房 阅读(65) 评论(0) 推荐(1)