[백준] 2577 Node.js
const fs = require('fs'); const [A,B,C] = fs.readFileSync("/dev/stdin").toString().trim().split("\n").map(Number); const str = ((A*B)*C).toString(); const nums = [0,0,0,0,0,0,0,0,0,0]; for(let i = 0; i < str.length; i++) { nums[str[i]] = nums[str[i]] +1 } console.log(nums.join('\n'))
2022. 9. 26.