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

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..
프로그래밍/알고리즘 풀이
2021. 4. 11. 13:56