Algorithm/baekjoon 썸네일형 리스트형 [NodeJS] 백준 16236번 - 아기 상어 /** * @link https://www.acmicpc.net/problem/16236 * @name 아기_상어 */ const readline = require('readline'); const strToNumberArr = (str) => str.split(' ').map(Number); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; rl.on('line', (line) => { input.push(line); }).on('close', () => { const n = Number(input.shift()); const result = solution(n, .. 더보기 [NodeJS] 백준 15686번 - 치킨 배달 /** * @link https://www.acmicpc.net/problem/15686 * @name 치킨_배달 */ const readline = require('readline'); /** * * @param {string} str * @returns {number[]} */ const strToNumberArr = (str) => str.split(' ').map(Number); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; rl.on('line', (line) => { input.push(line); }).on('close', () => { const [.. 더보기 [NodeJS] 백준 13549번 - 숨바꼭질 3 /** * @link https://www.acmicpc.net/problem/13549 * @name 숨바꼭질_3 */ const readline = require('readline'); const strToNumberArr = (str) => str.split(' ').map(Number); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; rl.on('line', (line) => { input.push(line); }).on('close', () => { const [n, k] = strToNumberArr(input[0]); const result = sol.. 더보기 [NodeJS] 백준 15666번 - N과 M (12) /** * @link https://www.acmicpc.net/problem/15666 * @name N과_M_(12) */ const readline = require('readline'); const strToNumberArr = (str) => str.split(' ').map(Number); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; rl.on('line', (line) => { input.push(line); }).on('close', () => { const [n, m] = strToNumberArr(input.shift()); const resu.. 더보기 [NodeJS] 백준 15663번 - N과 M (9) /** * @link https://www.acmicpc.net/problem/15663 * @name N과_M_(9) */ const readline = require('readline'); const strToNumberArr = (str) => str.split(' ').map(Number); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; rl.on('line', (line) => { input.push(line); }).on('close', () => { const [n, m] = strToNumberArr(input.shift()); const resul.. 더보기 [NodeJS] 백준 11660번 - 구간 합 구하기 5 /** * @link https://www.acmicpc.net/problem/11660 * @name 구간_합_구하기_5 */ const readline = require('readline'); const strToNumberArr = (str) => str.split(' ').map(Number); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; rl.on('line', (line) => { input.push(line); }).on('close', () => { let idx = 0; const [n, m] = strToNumberArr(input[idx++].. 더보기 [NodeJS] 백준 1916번 - 최소비용 구하기 /** * @link https://www.acmicpc.net/problem/1916 * @name 최소비용_구하기 */ const readline = require('readline'); const strToNumberArr = (str) => str.split(' ').map(Number); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; rl.on('line', (line) => { input.push(line); }).on('close', () => { let idx = 0; const n = Number(input[idx++]); const m = Num.. 더보기 [NodeJS] 백준 9464 - 스티커 /** * @link https://www.acmicpc.net/problem/9465 * @name 스티커 */ const readline = require('readline'); const strToNumberArr = (str) => str.split(' ').map(Number); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; rl.on('line', (line) => { input.push(line); }).on('close', () => { const T = Number(input.shift()); const arr = []; for (let i = 0.. 더보기 이전 1 2 3 4 ··· 13 다음