Source of the problem: LeetCode
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Each test case contains only one line, with only one positive integer n (n ≤ 100), which indicates the number of steps to reach to the top.
For each test case, print the number of distinct ways you can climb to the top.
範例輸入 1
4
範例輸出 1
5
Pro 專屬功能: 查看這題在歷屆 CPE 出現過幾次 — 升級以解鎖.