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:为什么RTE呢?

Posted by p1s at 2006-06-19 21:20:10 on Problem 2601
In Reply To:为什么RTE呢? Posted by:00 at 2006-05-17 00:49:52
直接用递归做不出来的
比如n=2的时候
a(1)调用a(0)和a(2)
a(0)可以求得
a(2)又调用a(1)和a(3)
a(1)又调用a(0)和a(2)
a(0)可以求得
a(2)又调用a(1)和a(3)
a(1)又调用a(0)和a(2)
a(0)可以求得
a(2)又调用a(1)和a(3)
……
堆栈溢出了

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