标签:
#include<iostream> #include<cstring> #include<cstdio> #include<cmath> using namespace std; int main() { int z,t = 0; cin>>z; while(z--) { printf("Scenario #%d:\n",++t); int a,b,c; cin>>a>>b>>c; if(a>b) swap(a,b); if(b>c) swap(b,c); if(a*a+b*b == c*c) cout<<"yes"<<endl<<endl; else cout<<"no"<<endl<<endl; } return 0; }
标签:
原文地址:http://www.cnblogs.com/wos1239/p/4557070.html