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

哈!郁闷两天,终于AC了,太粗心了!

Posted by decstery at 2006-03-30 20:56:31 on Problem 2777
In Reply To:程序改过之后还是WA...那位大牛能给点测试数据? Posted by:decstery at 2006-03-30 12:34:32
int getColorKindNum(unsigned color)
{
	int i;
	int result=0;
	for(i=1;i<=o;i++)
	           ~~~~~~~~这里应该是颜色的总数t,写成命令数o了
	{
		if( color & COLOR(i) )
			result++;
	}
	return result;
}

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