随笔分类 -  数学-BSGS

摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=1e3+11,St=1e3,mod=1e4; 4 int dp[N][N],sum[N][N]; 5 6 inline int re_ad() { 7 char ch=get 阅读全文
posted @ 2021-09-24 23:05 上官书房 阅读(43) 评论(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)