Honeycomb
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The bee can go in honeycomb as shown in the figure — with moves and from upper row and with move from the lower.
Input
The number of hexagons in the upper row. The lower row contains hexagon less.
Output
Print the number of ways to get from the first cell of the top row to the last cell of the same row.
Examples
Input #1
Answer #1
Input #3
Answer #3
Submissions 6K
Acceptance rate 47%