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:C的输入输出和C++的输入输出不能一起用 是这个意思吧

Posted by frkstyc at 2004-10-18 16:14:46 on Problem 1811
In Reply To:C的输入输出和C++的输入输出不能一起用 是这个意思吧 Posted by:deliver at 2004-10-16 19:04:13
> 这题使用_int64保存大数

其实不需要__int64。题目给的范围是2<N<2^54,就暗示了可以用double。double最大可精确表示的整数恰是2^54-1,而且用fmod求余数只需一次除法。在32位机上,如果不用浮点单元,__int64除法至少要做两次(除非你用MMX指令来模拟)。

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