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 mayp at 2007-03-12 15:49:48 on Problem 1958
han4(1)=1;
han4(n)=min(2*han4(i)+han3(n-i))   (0<i<n)
han3(n)=2*han3(n-1)+1;
han3,han4表示有3,4个POLE,同样的思路,可以将其推广到任意POLE,当然,复杂度也会很高..

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