CF 315B(Sereja and Array-峰顶距离统计) (二)

2014-11-24 01:07:56 · 作者: · 浏览: 12
}
For(i,m)
{
int type;
scanf("%d",&type);
if (type==1)
{
int v,x;
scanf("%d%d",&v,&x);
a[v]+=x-(a[v]+tmp);
}
else if (type==2)
{
int w;
cin>>w;
tmp+=w;
}
else
{
int v;
scanf("%d",&v);
cout< }

}

return 0;
}