Algorithm/baekjoon 썸네일형 리스트형 [NodeJS] 백준 2667번 단지 번호 붙이기 /** * @link https://www.acmicpc.net/problem/2667 * @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] 백준 2178번 미로탐색 /** * @link https://www.acmicpc.net/problem/2178 * @name 미로탐색 */ const readline = require('readline'); const strToNumberArr1 = (str) => str.split(' ').map(Number); const strToNumberArr2 = (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', () => { c.. 더보기 [NodeJS] 백준 1992번 쿼드트리 /** * @link https://www.acmicpc.net/problem/1992 * @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, inp.. 더보기 [NodeJS] 백준 1697번 /** * @link https://www.acmicpc.net/problem/1697 */ 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 = solution(n, k); con.. 더보기 [NodeJS] 백준 18870 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 [, str] = input; const result = solution(strToNumberArr(str)); console.log(result.join(' ')); process.exit(); }); /** * *.. 더보기 [NodeJS] 백준 11398 /** * @link https://www.acmicpc.net/problem/13398 */ 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 [, str] = input; const result = solution(strToNumberArr(str)); conso.. 더보기 [NodeJS] qorwns 11724 /** * @link https://www.acmicpc.net/problem/11724 */ 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], ...arr] = input.map(strToNumberArr); const result = solutio.. 더보기 [NodeJS] 백준 11279 /** * @link https://www.acmicpc.net/problem/11279 */ const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; rl.on('line', (line) => { input.push(Number(line)); }).on('close', () => { const n = input.shift(); const result = solution(n, input); console.log(result.join('\n')); process.exit(); }); /** * * @param.. 더보기 이전 1 2 3 4 5 6 7 ··· 13 다음