mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
9 lines
241 B
C++
9 lines
241 B
C++
|
#include <cstdio>
|
||
|
int main(){
|
||
|
for(int a,b,c,t;scanf("%d%d%d",&a,&b,&c)&&(a||b||c);){
|
||
|
if(a<b)t=a,a=b,b=t;
|
||
|
if(a<c)t=a,a=c,c=t;
|
||
|
printf("%s\n",(a+b>c)&&(a+c>b)&&(b+c>a)&&a*a==b*b+c*c?"right":"wrong");
|
||
|
}
|
||
|
}
|