摘要:
#include #include #include #include using namespace std; typedef long long ll; queue q; inline ll read () { ll x=0,f=1; char ch=getchar(); while(!isdigit(ch)) { if(ch=='-') f... 阅读全文
摘要:
#include #include #include #include using namespace std; typedef long long ll; deque d; inline ll read () { ll x=0,f=1; char ch=getchar(); while(!isdigit(ch)) { if(ch=='-') f... 阅读全文
摘要:
#include #include #include #include using namespace std; typedef long long ll; priority_queue , greater >q; //greater 从小到大排序 //less 从大到小排序 inline ll read () { ll x=0,f=1; char ch=getchar... 阅读全文
摘要:
例题 #include <bits/stdc++.h> #define rep(i,j,n) for(register int i=j;i<=n;i++) #define Rep(i,j,n) for(register int i=j;i>=n;i--) #define low(x) x&(-x) 阅读全文
摘要:
例题 阅读全文
摘要:
muliset就不提了 muliset 是set的“升级版” ; 定义方法 阅读全文
摘要:
#include <list> #include <iostream> #include <cstdio> #include <cctype> using namespace std; typedef long long ll; list < ll > l; inline ll read () { 阅读全文
该文被密码保护。 阅读全文
摘要:
前缀和 前缀和是一种很重要的思想 其实这个思想很简单 就是一次预处理 把原来O(N*M)的复杂度降到O(N+M) ∑a[i]+...+a[j]=sum[j]-sum[i-1]; 那么区间的数值查询该怎么做呢 假设有m次查询 ans=∑a[x]+...a[y]; 如上所述 ∑a[x]+...a[y]= 阅读全文