sueleesoossoo's devlog


  • Home

  • Categories

  • About

  • Archives

  • Tags

[알각코] 백준 10870번 - 피보나치 수 5

Posted on 2021-08-15 | In Algo , TIL | 0 comments

백준 10870번

N = int(input())

def fibonacci(num):
    if num == 0:
        return 0
    if num == 1:
        return 1
    return fibonacci(num-1) + fibonacci(num-2)

print(fibonacci(N))

Screen Shot 2021-08-14 at 8 52 51 PM

# Algo
[알각코] 백준 2231번 - 분해합
[알각코] 백준 10872번 - 팩토리얼
  • Table of Contents
  • Overview
LEESOO

LEESOO

Junior Frontend Developer

341 posts
12 categories
34 tags
RSS
GitHub
  1. 1 백준 10870번
© 2024 LEESOO
Powered by Jekyll
Theme - NexT.Muse