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

注意处理边界!!

Posted by Ruby931031 at 2012-03-07 18:37:46 on Problem 2689
2146483648 2147483647
2146483811,2146483813 are closest, 2146841093,2146841273 are most distant.
1 2
There are no adjacent primes.
这两组数据很不错,注意边界的处理!!
还有建议使用unsigned int,我就是因为用了int,最后i++的时候超了int的最大范围,才RE了两次。

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