BAEKJOON/JavaScript
[BAEKJOON] 단어의 개수 (1152번)
피리부는남자
2022. 3. 18. 11:52
// 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);