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
댓글