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:简单方法

Posted by afafafa at 2009-12-19 23:10:17 on Problem 1519
In Reply To:简单方法 Posted by:peterdi at 2009-05-19 16:31:31
> 输入的位数为n,则最大和为n*9,应该不会超过int的范围。将字符串各位加和后直接对9取模,注意:若为0则值应为9。(第一次就是这个地方错了)
但是输入的数可以超过int范围

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