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

const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const graph = []; let N, M; rl.on("line", (line) => { if (!N) { [N, M] = line.split(" ").map(Number); } else { graph.push(line.split("")); if (graph.length === N) { main(); process.exit(); } } }); const main = () => { let visited = []; const xMove = [0, 0, -1, 1]; const y..
프로그래밍/알고리즘 풀이
2021. 4. 13. 19:02