@inkysakura
2017-05-21T21:31:42.000000Z
字数 264
阅读 1225
CODE
#include <iostream>
#include <algorithm>
using namespace std;
int ncase;
int main()
{
int t;
cin >> t;
while(t--)
{
int a[3];
cin >> a[0]>>a[1]>>a[2];
sort(a,a+3);
cout <<"Case "<<++ncase<<": ";
if(a[2]*a[2]==a[1]*a[1]+a[0]*a[0])
cout << "yes"<<endl;
else cout << "no"<<endl;
}
return 0;
}