随笔分类 -  数据结构-树状数组

摘要: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-05 13:54 上官书房 阅读(41) 评论(0) 推荐(0)
摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=1e5+11,M=5e5+11; 4 int n,m,S,c[M],pri[N]; 5 inline int re_ad() { 6 char ch=getchar(); i 阅读全文
posted @ 2021-09-23 23:14 上官书房 阅读(56) 评论(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)