일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- HTTP 완벽 가이드
- 수학
- type challenge
- 크롤링
- socket
- HTTP
- TCP
- 프로그래머스 레벨 2
- ip
- 자바스크립트
- javascript
- 문자열
- Node.js
- Algorithm
- typescript
- 레벨 1
- 소켓
- 알고리즘
- Nestjs
- 백준
- 가천대
- 프로그래머스
- Crawling
- dfs
- 타입 챌린지
- dp
- BFS
- 그래프
- 타입스크립트
- 쉬운 문제
- Today
- Total
목록구현 (3)
kakasoo
const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", (line) => { main(line); rl.close(); }).on("close", () => { process.exit(); }); const findEmotion = (line, emotion) => { let count = 0; for (let i = 0; i < line.length - 3; i++) { if (line[i] === emotion[0]) { if (line[i + 1] === emotion[1]) { if (line[i + 2]..
const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", (line) => { main(line); process.exit(); }); /** * * @param {string} line */ const main = (line) => { let [A, B] = line.split(" ").map(BigInt); if (A > B) { let temp = A; A = B; B = temp; } if (A === B || A + BigInt(1) === B) { console.log(0); return; } let a..
// 백준 2752번 세수 정렬을 풀었습니다. const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", (line) => { main(line); rl.close(); }).on("close", () => process.exit()); /** * * @param {string} line */ const main = (line) => { const numbers = line .split(" ") .map(Number) .sort((a, b) => a - b) .join(" "); console.log(numbers)..