11916 - Mario and Coins   

Description

Please help Mario to find th max available number of coins exactly at the Nth step

Hint: Level-order traversal

 

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss