Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
知道等比序列和再怎么办?求助!!!!!!!!!!!!!!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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator