Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7172 - Гурвалжны хэлбэр

Гурвалжны 3 тал нь бүхэл тоогоор өгөгдсөн бол хэлбэрийг нь тодорхойл. Хэлбэр нь тэгш өнцөгт, хурц өнцөгт, мохоо өнцөгтийн аль нэг байна.

Input

Нэг мөрөнд гурвалжны 3 тал зайгаар тусгаарлагдан натурал тоонуудаар өгөгдөнө.

Output

Гурвалжин нь тэгш өнцөгт бол "Right", мохоо өнцөгт бол "Obtuse", хурц өнцөгт бол "Acute" гэж тус тус хэвлэнэ.

Example

Input:
3 4 5

Output:
Right

Нэмсэн:Bataa
Огноо:2013-01-14
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2015-03-10 11:24:39 ♫♪BBS♪♫
#include<stdio.h>
#include<stdlib.h>
#include<iostream.h>
using namespace std;
main()
{
int a,b,c,d,e;
scanf("%ld%ld%ld",&a,&b,&c);
if(a>b && a>c){
if(a*a==(b*b+c*c))
printf("Right");
if(a*a<(b*b+c*c))
printf("Acute");
if(a*a>(b*b+c*c))
printf("Obtuse");
}
if(b>a && b>c)
{
if(b*b==(a*a+c*c))
printf("Right");
if(b*b<(a*a+c*c))
printf("Acute");
if(b*b>(a*a+c*c))
printf("Obtuse");
}
if(c>a && c>b)
{
if(c*c==(a*a+b*b))
printf("Right");
if(c*c<(a*a+b*b))
printf("Acute");
if(c*c>(a*a+b*b))
printf("Obtuse");
}
for(;;);
return 0;
}


Last edit: 2015-03-10 11:24:58
2015-03-03 02:11:08 Anand
#include<iostream>
using namespace std;
main()
{int a,b,c,d,e;
cin>>a>>b>>c;
if(a>b && a>c){
if(a*a==(b*b+c*c))
cout<<"Right";
if(a*a<(b*b+c*c))
cout<<"Acute";
if(a*a>(b*b+c*c))
cout<<"Obtuse";
}
if(b>a && b>c){
if(b*b==(a*a+c*c))
cout<<"Right";
if(b*b<(a*a+c*c))
cout<<"Acute";
if(b*b>(a*a+c*c))
cout<<"Obtuse";
}
if(c>a && c>b){
if(c*c==(a*a+b*b))
cout<<"Right";
if(c*c<(a*a+b*b))
cout<<"Acute";
if(c*c>(a*a+b*b))
cout<<"Obtuse";
}
//system("pause");
return 0; }

2014-05-16 05:51:21 seregelenbaatar-kmts
bodson hvn bainu
2013-10-27 20:48:44 Anarmun
1. Hamgiin baga talaar n hypotenus iig n ol
2. Olson hypotenus chni hamgiin ih taltai tentsuu bol right, hypotenus chni hamgiin ih talaas baga bol mohoo, ih bol hurts
2013-05-14 05:48:26 D.Batmonkh
Pipogariin teoremiig ashigla

Last edit: 2013-05-14 05:48:46
2013-04-09 04:06:07 Ganbaa
Hi мохоо өнцөгт бол "Obtuse", хурц өнцөгт бол "Acute"
Yamar nohtsloor tanih yum be? bi sn oilgohgui baina

Last edit: 2013-04-25 02:19:45
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.