摘要: https://a154051.gitee.io/ 阅读全文
posted @ 2021-07-19 19:40 停不下来的奥尔加 阅读(21) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int mn=2e5+7; struct ccf{ int l,r,cnt; }tree[mn*20]; int a[mn],b[mn]; int len=0,root[mn]; bool cmp 阅读全文
posted @ 2020-11-27 19:44 停不下来的奥尔加 阅读(48) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int mn=1e6+7; struct ccf{ long long l,r,val; }tree[mn*20]; long long w[mn],root[mn],len=0; void bu 阅读全文
posted @ 2020-11-26 20:54 停不下来的奥尔加 阅读(60) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> #define de cout<<"$#^%%#@$*^%$^@#^&%$^$#^#$"<<endl using namespace std; const int mn=1e5+7; int w[mn],p; int tt=0,fr[mn],nx[2 阅读全文
posted @ 2020-11-19 16:06 停不下来的奥尔加 阅读(69) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define o(x,y) make_pair(x,y) using namespace std; const int mn=3e5+7; int fr[mn],nx[2*mn],to[2*mn],c[2*mn],tt,fr2[mn],nx2[2*m 阅读全文
posted @ 2020-11-15 18:25 停不下来的奥尔加 阅读(90) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int mn=1e6+7; int c[mn]; pair<int,int> m1,m2,m3; int main() { /*freopen("snakes.in","r",stdin); fr 阅读全文
posted @ 2020-11-14 21:11 停不下来的奥尔加 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; vector<long long> p[2][10007]; long long dis[10007]; int d[250000007]; bool pd[10007]; int num[10007]; i 阅读全文
posted @ 2020-11-13 11:44 停不下来的奥尔加 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 第一行两个正整数 n,k表示要收集 n 朵樱花,而前方还有 k 棵樱花树。 接下来一行 k 个正整数 s1,s2,⋯ ,sk​,其中 si​ 表示最多在第 i 棵樱花树下收集到 si​ 朵樱花。 一行一个整数,表示恰好收集到 n 朵樱花的方案数。 由于答案可能太大,请输出答案对 10086001 取 阅读全文
posted @ 2020-11-11 18:09 停不下来的奥尔加 阅读(92) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int mn=1e6+7; int c[mn]; struct ccf{ int l,id; }q1[mn],q2[mn]; int main() { int T;int n; cin>>T; f 阅读全文
posted @ 2020-11-09 15:48 停不下来的奥尔加 阅读(185) 评论(0) 推荐(1) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int mn=1e5+7; const int mm=2e5+7; int fr[mn],nx[mm],to1[mm],to2[mm],tot=0,dis[mn],tt=0; bool p[mn] 阅读全文
posted @ 2020-11-06 09:56 停不下来的奥尔加 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1247537832 #include <bits/stdc++.h> using namespace std; const int mn=1e6+7; const int mm=1e3+7; int tt=0; struct ccf{ int x,y; }a[mn]; //bool p1[mm][ 阅读全文
posted @ 2020-11-01 21:23 停不下来的奥尔加 阅读(80) 评论(0) 推荐(0) 编辑