#35002: python


1554101-0@g.puiching.edu.mo (P6A29_1300題了)

學校 : 澳門培正中學
編號 : 216811
來源 : [60.246.150.90]
最後登入時間 :
2024-10-10 18:56:38
d212. 東東爬階梯 | From: [27.109.151.69] | 發表日期 : 2023-05-01 12:55

N = 100
f = [0] * N
f[1] = 1
f[2] = 2
for i in range(3, N):
    f[i] = f[i-1] + f[i-2]
while True:
    try:
        n = int(input())
        print(f[n])
    except:
        break
 
ZeroJudge Forum