IT/Baekjoon Oline Judge
[BOJ] 2743번 - 단어 길이 재기
개발자희망생고롸파덕
2023. 8. 17. 19:40
사용언어 : javascript - node.js
#제출 코드
const fs = require('fs');
const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt';
const input = fs.readFileSync(filePath).toString().trim();
solution(input);
function solution(str) {
console.log(str.length);
}