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

我错3次,改了2小时的经验!!!!!!终于AC了!!!!!

Posted by lijingwei at 2010-08-02 09:52:40 on Problem 1730
1.注意负数,比如输入-64,输出3;
2.注意pow(-2,31)是在int范围里的,输入-2147483648,输出31;
3.if(j-(int)j<1e-12||(int)j+1-j<1e-12) 一定要考虑两边;
还有数据几乎用的int型,只有(double)1.0/i;
说实话这一题蛮没意思的,搞我2个小时!!!

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