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

Re:不要想复杂,按照字符串输入之后,就for (i=0;s[i];i++) {n+=s[i]-'0'; if (n>9) n-=9;}就这就搞定了哈。

Posted by babyaries at 2007-11-21 11:47:30 on Problem 1519
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:
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