Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

第一题线段树,贡献6个WA...

Posted by yongyao_li at 2009-04-16 16:55:57 on Problem 2777
在此特别感谢黄鸟人...

if(r<=mid) insertseg(2*v,l,r,c);
else 
if(mid<l) insertseg(2*v+1,l,r,c);
else 
{
        insertseg(2*v,l,mid,c);
	insertseg(2*v+1,mid+1,r,c);
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator