728x90
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'))
728x90
'Development > 코딩테스트' 카테고리의 다른 글
[백준] 3052 Node.js (0) | 2022.09.28 |
---|---|
[백준] 15829 Node.js (1) | 2022.09.27 |
[백준] 1546 Node.js (0) | 2022.09.25 |
[백준] 1152 Node.js (0) | 2022.09.24 |
[백준] 10250 Node.js (0) | 2022.09.24 |
댓글