mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
2b2ae8c977
2300-2399
16 lines
334 B
C++
16 lines
334 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int i,n,a,b,c;
|
|
scanf("%d",&n);
|
|
for(i=1;i<=n;i++)
|
|
{
|
|
scanf("%d%d%d",&a,&b,&c);
|
|
if(a*a==b*b+c*c||b*b==a*a+c*c||c*c==a*a+b*b)
|
|
printf("Scenario #%d:\nyes\n\n",i);
|
|
else
|
|
printf("Scenario #%d:\nno\n\n",i);
|
|
}
|
|
return 0;
|
|
}
|