chul's thinking
Chul n Ju
(281)
알쓸신잡
(4)
Short Thinking
(92)
Coding
(53)
CodeUp
(39)
Python
(14)
Chul's Family 09'
(0)
Chul
(0)
Kyung-Ju
(0)
Ju-Won
(0)
Camera_Lecture
(27)
Camera_Wants
(9)
Work
(32)
GSM
(1)
WCDMA
(3)
Embedded
(23)
Clien
(37)
New
(16)
Info
(1)
Magazine
(0)
혈액형
(0)
Spec
(2)
Info
(4)
food
(0)
engadget
(0)
Etc.
(0)
Life
(3)
Util
(1)
Music
(0)
Funny
(0)
Photo_Chul n Ju 08'
(0)
Chul
(0)
Ju
(0)
Photo_Wedding
(0)
Travel
(0)
Chul n Ju 08'
(0)
Paris
(0)
Praha
(0)
Wien
(0)
Salsbrug
(0)
Muchen
(0)
Amsteldam
(0)
Photo_
(0)
200708_Tailand
(0)
200801_SerkYoung Wedding
(0)
200803_Guam
(0)
Family
(0)
Company
(0)
Etc.
(0)
Photo_Camera
(0)
Barnak IIIf
(0)
Pentax Me Super
(0)
Contax G1
(0)
Pentax MX
(0)
Short_Articles
(12)
HOME
TAG
MEDIA LOG
LOCATION LOG
GUEST BOOK
ADMIN
WRITE
=3=3=3ㅌㅌ
simix.net 에 오신걸 환영 합니다..^^
/
/
블로그 내 검색
1915 : (재귀함수) 피보나치 수열
chulpark
2023. 3. 15. 18:32
2023. 3. 15. 18:32
https://codeup.kr/problem.php?id=1915
여기서 포인트는 n번째를 거꾸로 Tracking 하는 것임
import sys
sys.setrecursionlimit(10**7)
a = int(input())
def fib(n):
if n == 0:
return 0
elif n == 1 or n == 2:
return 1
else:
return fib(n - 1) + fib(n - 2)
print(fib(a))
공유하기
게시글 관리
chul's thinking
저작자표시
+ Recent posts
Powered by
Tistory
, Designed by
wallel
Rss Feed
and
Twitter
,
Facebook
,
Youtube
,
Google+
티스토리툴바