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

const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); let COUNT; let MAX_WEIGHT; let weights = [0]; let values = [0]; rl.on("line", (line) => { const arr = line.split(" ").map(Number); if (!COUNT && !MAX_WEIGHT) { COUNT = arr[0]; MAX_WEIGHT = arr[1]; } else { weights.push(arr[0]); values.push(arr[1]); if (weights.length > CO..
프로그래밍/알고리즘 풀이
2021. 3. 26. 20:12