import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
int T=sc.nextInt();
for(int k=0;k<T;k++) {
int a,b,c,temp;
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
if(c<b) {
temp=c;
c=b;
b=temp;
}
if(c<a) {
temp=a;
a=c;
c=temp;
}
System.out.println("Scenario #"+(k+1)+":");
if((a*a+b*b)==c*c)
System.out.println("yes");
else
System.out.println("no");
System.out.println();
}
}
}
}
hdu 2393
猜你喜欢
转载自blog.csdn.net/qq_40215528/article/details/83315458
今日推荐
周排行