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
- 출처 유니티 교과서
- 출처https://blog.naver.com/ndb796/221233570962
- 고박사
- 플랫포머 마이크로게임
- Platformer Microgame
- https://www.youtube.com/watch?v=wwyAaWGnHM4&t=602s
- https://www.acmicpc.net/problem/10809
- 출처 유니티교과서
- https://www.youtube.com/watch?v=V623GOfjrZc&t=472s
- https://github.com/search?q=idle&type=repositories
Archives
- Today
- Total
목록출처https://blog.naver.com/ndb796/221233570962 (1)
홀리 해빗
(백준BAEKJOOB )- 11726번 -2xn 타일링 문제 "c"
이 문제를 풀기 위해서 dp 라는 알고리즘을 공부했고 파보나치 수를 공부했다. n=17일때 까지 피보나치 수를 써보면 다음과 같다. 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597 앞에 수와 더하는 것이다. 한마디로 이것을 구하기 위한 점화식은 d[x]=d(x-1)+d(x-2)로 볼수있다. int a[1001]; int dp(int x) { if (x == 1) return 1; //타일 한개 일때는 한개만 if (x == 2) return 2; //타일 2개일때 3가지 나옴 if (a[x] != 0) { return a[x]; } return a[x] = ((dp(x - 1) + dp(x - 2))) % 10007; } 코드..
언어/c
2023. 2. 19. 20:50