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

Move to invert

Posted by a1b2c3 at 2009-06-13 06:17:48
Please anyone explain me how to resolve this problem:
Can yo help with the resolution of the fallowing problem:
A triangle made of coins of height h is as follows: 
It has h coins at the base and h-1 coins one level above base and so on.(Coins are placed as shown in the figure below) 

 
And at the top most level there will be only one coin 
Now given h the task is to invert this triangle by moving minimum number of coins. For example when h=4 triangle is 

For h=4 atleast 3 coins must be moved to invert it.

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