https://www.acmicpc.net/problem/7510
#include <iostream>
using namespace std;
int main() {
int n,a,b,c;
cin>>n;
for(int i=1;i<=n;i++){
cin>>a>>b>>c;
int sum=a*a+b*b+c*c;
int ma=max(a,max(b,c));
if(sum==2*ma*ma){
printf("Scenario #%d:\n",i);
printf("yes\n\n");
}
else{
printf("Scenario #%d:\n",i);
printf("no\n\n");
}
}
}