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

递归了? 我的k只要上到10^9肯定是说stack overflow

Posted by eminemxh at 2007-06-03 23:33:07 on Problem 3233
In Reply To:Re:怎么做? Posted by:akme at 2007-06-03 21:43:41
> 设f[n]=A^1+A^2+....A^n;
> 当n是偶数,f[n]=f[n/2]+f[n/2]*A^(n/2);
> 但n是奇数,f[n]=f[n-1]+A^(n);

stack overflow是不是给我一个WA还是Runtime Error?
我得到的是WA 

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