목록NZEC (1)
언젠가는 펼쳐 볼 아카이브
[BOJ] 5073번 - 삼각형과 세 변
사용언어 : javascript - node.js #첫번째 제출코드 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; const input = fs .readFileSync(filePath) .toString() .trim() .split('\n') .map((item) => item .trim() .split(' ') .map((item) => +item) ); input.forEach((item) => { if (item[0] !== 0 && item[2] !== 0) { solution(item); } }); function solution(item) { item...
IT/Baekjoon Oline Judge
2023. 9. 11. 19:17