摘要: #include#include#include#include#includeusing namespace std;#define maxn 1000100int l[maxn],r[maxn],nn,e[maxn],v[maxn],ne[maxn],op1[maxn],op2[maxn],n,m,c,nex[maxn],now[maxn];int ans[maxn];void add(int x,int y){ ne[++nn]=e[x],e[x]=nn,v[nn]=y;}int a[maxn],cl[maxn];int lowbit(int x){ return x&-x; } 阅读全文
posted @ 2014-03-25 19:52 wangyucheng 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define maxn 1000100#define ll long long#define dd doubleint n;ll x[maxn],p[maxn],c[maxn];ll X[maxn],P[maxn],C[maxn],A[maxn];ll f[maxn],yy[maxn];int qu[maxn],he,bo;ll a1[maxn],a2[maxn],a3[maxn];int main(){ scanf("%d",&n); for(int i=1; 阅读全文
posted @ 2014-03-25 17:22 wangyucheng 阅读(149) 评论(0) 推荐(0) 编辑