1455 - DS_18_CHEN_quiz3 (CS2351) Scoreboard

Time

2018/05/07 18:30:00 2018/05/07 20:30:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
11917 Mario and Coins

11917 - Mario and Coins   

Description

  • Mario is in a maze, please help Mario to find max available number of coins at the Nth step,
  • There are four direction(up, down, left, right) he can move.
  • You can not go back. 
    • ex: N=2, It can not be considered as 1(first step at (1, 4)) -> 9(second step at (2, 4))
  • Hint: Level-order tree traversal

Input

  • Zero means wall.

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss