此题较简单,没有什么难点废话不多说,上代码
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
int n,d;
scanf_s("%d\n", &n);
d = 1;
while (n--)
{
int a, b, c;
scanf_s("%d %d %d", &a, &b, &c);
if ((a * a + b * b == c * c) || (a * a + c * c == b * b) || (c * c + b * b == a * a))
{
printf("Scenario #%d:\n",d);
printf("yes\n");
}
else
{
printf("Scenario #%d:\n",d);
printf("no\n");
}
d++;
printf("\n");
}
return 0;
}