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:有道理啊 我的a,right和left都是32位的

Posted by zdker at 2005-08-14 12:22:10 on Problem 2559
In Reply To:Re:一个关于 Pascal 的问题 弱弱的问??? Posted by:jiali at 2005-08-14 08:55:28
> 有人说这一个式子
> a[i]*(right[i]-left[i]+1)
> 在计算时中间变量会超出范围,你的a,right和left不是64位的吧?那么计算此式时计算机分配的中间变量就不是64位的,于是就会超出范围。

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