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 peng494563814 at 2010-05-24 12:03:42 on Problem 2249
In Reply To:太奇怪了 Posted by:emperorlu at 2008-01-15 13:54:59
因为,2*m可能超出int的范围
比如这组数据 2000000000 2000000000
用unsigned,多了一个有效位,就OK啦!
用int的话判断条件改为这样if(n/2<m),也OK!

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