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:简单方法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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator