Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Tutorial
- Basic
- github
- 재귀
- C#
- 파이썬
- Material
- 프로그래밍
- W3Schools
- 시작해요 언리얼 2022
- UE5
- python
- loop
- 백준
- Unreal Engine 5
- c++
- w3school
- Class
- guide
- dfs
- Algorithm
- 문제풀이
- Unity
- String
- dynamic
- 기초
- 오류
- DP
- Programming
- parameter
Archives
- Today
- Total
목록1904 (1)
행복한 개구리
↓ 틀린코드 더보기 더보기 N = int(input()) dp = [0 for i in range(1000000)] dp[0] = 1 dp[1] = 2 def tile(n): if dp[n] != 0: return dp[n] else: dp[n] = tile(n-2) + tile(n-1) return dp[n] tile(N-1) result = dp[N-1] print(result % 15746) 재귀 오류가 떴습니다. 최대로 실행할 수 있는 깊이를 초과했답니다. import sys input = sys.stdin.readline print = sys.stdout.write N = int(input()) dp = [0 for i in range(1000000)] dp[0] = 1 dp[1] = 2 for..
Algorithm/BaekJoon
2022. 2. 7. 00:14