1152 (1) 썸네일형 리스트형 [BAEKJOON] 단어의 개수 (1152번) // const input = require("fs").readFileSync("/dev/stdin").toString().trim().split(" "); const input = "".toString().trim().split(" "); function countTheWordsInString(input) { let answer = input[0] === "" ? 0 : input.length; console.log(answer); } countTheWordsInString(input); 이전 1 다음