Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- long long int t,i,a,b,c,temp,x,y;
- scanf("%lld",&t);
- for(i=1;i<=t;i++){
- scanf("%lld %lld %lld",&a,&b,&c);
- if(a>b && a>c){
- temp=a;
- a=c;
- c=temp;
- }
- else if(b>a && b>c){
- temp=b;
- b=c;
- c=temp;
- }
- x=(a*a)+(b*b);
- y=c*c;
- if(x==y)
- printf("Case %lld: yes\n",i);
- else
- printf("Case %lld: no\n",i);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement