728x90
반응형

2747번과 똑같이 풀 수 있다.

n = int(input())
a, b = 0, 1
for i in range(n):
    a, b = b, a+b
print(a)

728x90
반응형

+ Recent posts