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

const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", (line) => { const numPad = new Array(line.length).fill(0).map((el, i) => i + 1); const acc = numPad.map((el, i) => { if (10 ** (i + 1) < Number(line)) { return el * 10 ** i * 9; } else { return el * (Number(line) + 1 - 10 ** i); } }); const sum = acc.reduce(..
프로그래밍/알고리즘 풀이
2021. 7. 29. 18:45