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 |
Re:不要想复杂,按照字符串输入之后,就for (i=0;s[i];i++) {n+=s[i]-'0'; if (n>9) n-=9;}就这就搞定了哈。In Reply To:不要想复杂,按照字符串输入之后,就for (i=0;s[i];i++) {n+=s[i]-'0'; if (n>9) n-=9;}就这就搞定了哈。 Posted by:bluegenelove at 2007-09-29 23:53:27 多谢,原来我还要来回转换,而你这样就可以避免很多麻烦了。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator