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 kamisama at 2014-06-24 17:46:05 on Problem 1830
若是是用cout输出,千万不要用pow函数,因为pow函数返回值是双精度的!!数据大到一定程度就变成指数形式输出了!!!
输出前先强制转换成long或者直接位运算吧!
害我交了十几次,我去~

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