728x90
const fs = require('fs');
const input = fs.readFileSync("/dev/stdin").toString().trim().split(" ").map(Number);
let serial = 0;
for(let i = 0; i < input.length; i++) {
serial +=(input[i] * input[i]);
}
console.log(serial%10)
728x90
'Development > 코딩테스트' 카테고리의 다른 글
[백준] 10797 Node.js (0) | 2022.09.19 |
---|---|
[백준] 1271 Node.js (0) | 2022.09.19 |
[백준] 2754 Node.js (0) | 2022.09.17 |
[백준] 9086 Node.js (0) | 2022.09.16 |
[백준] 2440 Node.js (0) | 2022.09.16 |
댓글