POJ 3468 A Simple Problem with Integers Splay tree&Segment tree(三)

2014-11-24 11:26:10 · 作者: · 浏览: 10
canf("%s",str);
if(str[0]=='C'){
long long x,y,z;
scanf("%lld%lld%lld",&x,&y,&z);
update(1,x,y,z);
}
else www.2cto.com
{
long long x,y;
scanf("%lld%lld",&x,&y);
printf("%lld\n",query(1,x,y));
}
}
// system("pause");
return 0;
}


作者:ACM_cxlove