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 lijingwei at 2011-08-03 21:27:50 on Problem 2539
java写的...不能用t.pow(a).substract(one)这样吧???a很大也会tle!!!
难道把等比序列一项一项加起来?也不行吧。。。我的做法是
由于等比序列最后一项是t^(a-b)次方,那么如果(a-b)*log10(t)>100,肯定不能表示位100位之内!
还TLE。然后自己写二分求幂,还tle!然后改成buffer存储一次输出,还tle!
求高手帮忙!!!!!!!!!!!!!!!!!到底改哪个地方.

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