标签:style color java os strong io ar new
Total Submission(s): 2291 Accepted Submission(s): 1262
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int max(int a,int b) { int T; if(a>b) { T=a; a=b; b=T; } return b; } int main() { __int64 a[5]; int cas; cin>>cas; int t=1; while(cas--) { cin>>a[1]>>a[2]>>a[3]; cout<<"Scenario #"<<t<<":"<<endl; if(a[1]&&a[2]&&a[3]) { sort(a+1,a+4); if(a[3]*a[3]==a[2]*a[2]+a[1]*a[1]) cout<<"yes"<<endl<<endl; else cout<<"no"<<endl<<endl; } else cout<<"no"<<endl<<endl; t++; } return 0; }
hdu 2393 Higher Math,布布扣,bubuko.com
标签:style color java os strong io ar new
原文地址:http://blog.csdn.net/fanerxiaoqinnian/article/details/38323481