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

((__int64)1) << 31 这样就没有问题了

Posted by scat at 2008-08-01 22:09:53 on Problem 2115
In Reply To:Re:给一直WA的战友,在算2^k次方的时候不要用移位,当k=31的时候移位发生错误(保证我用的是64位移动的) Posted by:Mcfaddan_b at 2008-04-07 17:06:40
> 顶。。。还以为用移位要高级一点,没想到方便的也是有bug的。。。
> 这个教训告诉我们:不能太懒。。

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