解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); if((a * a + b * b == c * c) || (a * a + c * c == b * b) || (c * c + b * b == a * a)) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
0.0分
0 人评分
【回文数(二)】 (C++代码)浏览:865 |
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)浏览:438 |
A+B for Input-Output Practice (C++代码)浏览:605 |
C语言程序设计教程(第三版)课后习题6.8 (C语言代码)浏览:763 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:586 |
字符串输入输出函数 (C语言代码)浏览:2480 |
Tom数 (C语言代码)浏览:725 |
Hello, world! (C语言代码)浏览:821 |
1202题解浏览:609 |
C语言程序设计教程(第三版)课后习题6.4 (C语言代码)浏览:1189 |