[关闭]
@inkysakura 2017-05-21T13:31:42.000000Z 字数 264 阅读 1085

lightoj1053

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;
}
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注