#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 stair, stairs, or stairs. Now there are a total of stairs. Can you help Xiao Ming calculate how many different ways there are?
Input Format
Input one line containing an integer .
Output Format
Output one line containing one integer representing the answer.
4
7
10
274
Hint
For all testdata, it is guaranteed that .
Translated by ChatGPT 5