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

发现写错了= =。。。

Posted by Mrw at 2010-09-25 16:22:08 on Problem 2155
In Reply To:2维树状数组居然TLE了。。。求解啊。 Posted by:Mrw at 2010-09-25 16:02:24
inline int get_sum( int x, int y )
{
	int sum = 0;
	for( int i = x ; i != 0; i -= lowbit(i)) //这里原来写成了x
	    for( int j = y ; j != 0; j -= lowbit(j)) //这里原来写成了y
	        sum += tre[i][j];
	return sum;
}

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