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:晕……只是把double改成了long int 就对了……无语

Posted by majia5 at 2008-07-24 20:10:41 on Problem 3100
In Reply To:Re:晕……只是把double改成了long int 就对了……无语 Posted by:zhzz at 2008-07-10 19:22:10
> 应该是输出的问题吧,double型输出时候 1000000 输出为 1e+006
> 而long 可以输出1000000
> 
> 我的就是输出时强制转换了 就正确了,double时候一直wa


可以使用double
我的思路是把大的那个数开n次方,然后(int),显然A^n必定小于等于B
然后再试(A+1)^n,A^n哪个更好
然后输出就AC了!

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