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

不是这样的,我的开到100也AC了

Posted by zhouxiaozi at 2009-03-05 16:03:08 on Problem 1519
In Reply To:我测试的结果,输入的整数在800位到850位之间 Posted by:blablabla at 2007-03-16 21:49:29
只要定义一个s[100]
然后              
for(i=0;i<len;i++)
{
	sum+=s[i]-'0';
		if(sum>9)
			sum-=9;
}
就行了,水题一道

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