피보나치
#수학 #구현
백준 2747번 : 피보나치 수
1. 첫 풀이
count = int(input())-1
a=0
b=1
temp=0
for n in range(count):
temp=a+b
a=b
b=temp
if(temp == 0):
print(1)
else:
print(temp)2. 재귀 함수 풀이
3. 최적화 풀이
Last updated