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:为什么一定要在末尾补一个0啊,不然是错的,算出的sa有些是负数?

Posted by Liuzhaoliang at 2014-10-07 14:54:42 on Problem 1743
In Reply To:为什么一定要在末尾补一个0啊,不然是错的,算出的sa有些是负数? Posted by:oracle_ at 2014-10-07 12:45:37
不加的时候,有可能你后缀进行比较的时候会比较不完。如果有末尾是0,那么到了这个0,就一定能确定大小了。
否则你想想 2222, 2222222这两个后缀比较下、

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