摘要: 还好有题解,公式不用自己推了 #include<bits/stdc++.h> using namespace std; const int _G=3,mod=1004535809,Maxn=135000,MaxNum=10000500; long long powM(long long a,int 阅读全文
posted @ 2024-10-02 20:47 yzc_is_SadBee 阅读(13) 评论(1) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int n,m,t,p,b[310000],tr[310000],d[310000],e[310000],g[310000],kk; char ch[100]; struct sth { int x,y,z,w 阅读全文
posted @ 2024-10-02 19:47 yzc_is_SadBee 阅读(14) 评论(0) 推荐(0)
摘要: 卡特兰数 #include<bits/stdc++.h> using namespace std; long long mp[2000005],p[200005],cnt[2000005],r; long long qpow(long long a,long long b) { long long 阅读全文
posted @ 2024-10-02 19:29 yzc_is_SadBee 阅读(13) 评论(0) 推荐(0)
摘要: 如果不能越级打怪还叫什么主角 #include<bits/stdc++.h> namespace my_std { using namespace std; #define rep(i,x,y) for (int i=(x);i<=(y);i++) #define drep(i,x,y) for ( 阅读全文
posted @ 2024-10-02 19:18 yzc_is_SadBee 阅读(13) 评论(0) 推荐(0)
摘要: 好久没发博客了(因为在家) 看到大家都是用后缀数组+莫队的,于是模仿题解搞了一搞 #include<bits/stdc++.h> using namespace std; int blk[200005]; struct ques { int l,r,id; inline friend bool op 阅读全文
posted @ 2024-10-02 18:48 yzc_is_SadBee 阅读(11) 评论(0) 推荐(0)