카테고리 없음
[백준] 4153 Node.js
Yeony99
2022. 9. 28. 00:56
728x90
const fs = require('fs');
const input = fs.readFileSync("/dev/stdin").toString().trim().split("\n");
const count = input.length-1;
for(let i = 0; i < count; i++) {
const [x,y,z] = input[i].split(" ").map(Number).sort((a,b) => a-b);
if((x**2 +y**2) == z**2) {
console.log('right')
} else {
console.log('wrong')
}
}
728x90