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:还是没想通为什么循环变量i变成long long,32MS就过了,用int就不停地TLE

Posted by 1085438567 at 2019-02-26 12:26:57 on Problem 2480
In Reply To:还是没想通为什么循环变量i变成long long,32MS就过了,用int就不停地TLE Posted by:C_myth at 2014-08-12 14:50:45
> i*i<=N的话应该用int足矣了呀
因为N最大是2^31-1,所以i*i可能会溢出

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