Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
哈!郁闷两天,终于AC了,太粗心了!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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator