#P10250. [GESP样题 六级] 下楼梯

[GESP样题 六级] 下楼梯

Background

Related multiple-choice and true/false questions: https://ti.luogu.com.cn/problemset/1106.

Problem Description

Mischievous Xiao Ming found that when going down the stairs, each step can move down 11 stair, 22 stairs, or 33 stairs. Now there are a total of NN stairs. Can you help Xiao Ming calculate how many different ways there are?

Input Format

Input one line containing an integer NN.

Output Format

Output one line containing one integer representing the answer.

4
7
10
274

Hint

For all testdata, it is guaranteed that 1N601 \leq N \leq 60.

Translated by ChatGPT 5