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

// 백준 14889번 스타트와 링크를 풀었습니다. // 조합을 사용하여 풀었습니다. const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const combinations = function* (elements, selectNumber) { for (let i = 0; i < elements.length; i++) { if (selectNumber === 1) { yield [elements[i]]; } else { const fixed = elements[i]; const rest = elements.slice(i + 1); for..
프로그래밍/알고리즘 풀이
2021. 8. 1. 12:15

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 #include using namespace std; int startLink[21]; int arr[21][21]; int visited[21]; int n; void dfs(int cnt, int start) { if (cnt == n / 2) { for (int i = 0; i
프로그래밍/알고리즘 풀이
2020. 3. 1. 22:55