반응형
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
- 쉬운 문제
- Nestjs
- TCP
- HTTP
- 문자열
- 그래프
- javascript
- 백준
- Node.js
- 자바스크립트
- 레벨 1
- 가천대
- 크롤링
- 프로그래머스
- dfs
- ip
- Algorithm
- 소켓
- dp
- type challenge
- BFS
- typescript
- 프로그래머스 레벨 2
- HTTP 완벽 가이드
- socket
- 타입스크립트
- 수학
- 알고리즘
- 타입 챌린지
- Crawling
Archives
- Today
- Total
목록부분수열의 합 (1)
kakasoo

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 #include using namespace std; int n, s, sum, counted; int arr[21]; bool visited[21]; void dfs (int start) { visited[start] = true; int cur = start; sum += arr[start]; if (sum == s) { counted++; } for (int i = start + 1; i > n >> s; for (int i = 0; i > arr[i]; for (i..
프로그래밍/알고리즘 풀이
2020. 3. 3. 14:48