본문 바로가기
TIL(Today I learned)/2. 알고리즘_백준

백준 10952 문제_node.js

by dot_Connector 2022. 7. 18.

const fs = require('fs');
const input = fs.readFileSync('/dev/stdin').toString().trim().split('\n').map(n=> n.trim());

let testCase = '';
let result = '';
for(let i = 0; i < input.length -1; i++){
    testCase = input[i].split(" ").map(n=> Number(n));
    result += `${testCase[0]+testCase[1]}\n`  
}

console.log(result);

'TIL(Today I learned) > 2. 알고리즘_백준' 카테고리의 다른 글

백준 10818문제_node.js  (0) 2022.07.21
백준 1110번 문제_node.js  (0) 2022.07.20
백준 10871 문제_node.js  (0) 2022.07.18
백준 2439번_node.js  (0) 2022.07.18
백준 2438문제_node.js  (0) 2022.07.18