| ||||||||||
| 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 | |||||||||
不是这样的,我的开到100也AC了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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator