반응형
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 |
Tags
- Algorithm
- 수학
- dfs
- 백준
- 크롤링
- dp
- TCP
- 가천대
- 프로그래머스 레벨 2
- 자바스크립트
- 쉬운 문제
- 문자열
- 알고리즘
- 프로그래머스
- HTTP
- BFS
- javascript
- Nestjs
- 타입 챌린지
- 타입스크립트
- 그래프
- ip
- HTTP 완벽 가이드
- 레벨 1
- Node.js
- socket
- typescript
- 소켓
- Crawling
- type challenge
Archives
- Today
- Total
목록이항 계수 1 (1)
kakasoo
[memorization] 이항 계수 1 (백준 11050번)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #include using namespace std; int memo[20] = { 1,1, }; int factorial(int num) { if (num == 0 || num == 1) return 1; if (!memo[num]) { return memo[num] = num * factorial(num - 1); } else return memo[num]; } int main(void) { int n,k; cin >> n >> k; cout
프로그래밍/알고리즘 풀이
2020. 3. 3. 14:55