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
2023-10-20 17:21:56
#include <stdio.h>
#include <stdlib.h>

int cmd (const void * a, const void * b) {
return ( *(int*)a - *(int*)b );
}

int main()
{
int a[3];

for (int i = 0; i < 3; i++)
{
scanf("%d", &a[i]);
}

qsort(a, 3, sizeof(int), cmd);

for(int i = 0; i < 3; i++)
{
a[i] = a[i] * a[i];
}

a[0] = a[0] + a[1];

if (a[2] == a[0])
{
printf("Right");
}
else if(a[2] > a[0]){
printf("Obtuse");
}
else{
printf("Acute");
}

return 0;
}
2023-05-19 02:19:48
#include <iostream>
using namespace std;
int main() {
int a , b , c , d , e , f;
scanf("%d %d %d " , &a , &b ,&c );
if(a < b && c < b){
d=b;
e=a;
f=c;
}
if(a < c && b < c){
d=c;
e=b;
f=a;
}
if(b < a && c < a) {
d=a;
e=c;
f=b;
}
if(e*e + f*f == d*d)printf("Right");
if(e*e + f*f > d*d )printf("Acute");
if(e*e + f*f < d*d )printf("Obtuse");
return 0;
}
2023-05-10 11:08:07
hudla sha
2023-03-15 03:07:37
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,z,x,d;

cin>>a>>b>>c;

z=a;
x=b;
d=c;
if(b>c&&b>a){
a=b;
b=z;
}

else if(c>b&&c>a){
a=c;
c=z;
}

if(a*a==b*b+c*c) cout<<"Right"<<endl;
else if(a*a>b*b+c*c) cout<<"Obtuse"<<endl;
else if(a*a<b*b+c*c) cout<<"Acute"<<endl;

return 0;
}
huln nie d zoriulav
malaa
2023-02-04 05:51:24
MY SONGS KNOW WHAT YOU DID IN THE DAaAaAaAaAaAaAaARK
2023-01-09 10:12:33
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d,e;
scanf("%d %d %d",&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");
}
}
2022-12-07 07:08:52
#include<bits/stdc++.h>
using namespace std;
main(){

int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a>0&&b>0&&c>0)
if(a*a+b*b==c*c||c*c+a*a==b*b||c*c+b*b==a*a)
printf("Right");
else
if(a*a+b*b<c*c||c*c+a*a<b*b||b*b+c*c<a*a)
printf("Obtuse");
else
if(a*a+b*b>c*c||c*c+a*a>b*b||b*b+c*c>a*a)
printf("Acute");
}
ezzz
2022-11-29 11:23:19
#include<bits/stdc++.h>

using namespace std;

int main(){
int a,b,c,z,x,d;

cin>>a>>b>>c;

z=a;
x=b;
d=c;
if(b>c&&b>a){
a=b;
b=z;
}

else if(c>b&&c>a){
a=c;
c=z;
}

if(a*a==b*b+c*c) cout<<"Right"<<endl;
else if(a*a>b*b+c*c) cout<<"Obtuse"<<endl;
else if(a*a<b*b+c*c) cout<<"Acute"<<endl;

return 0;
}
for ur mom
2022-10-24 09:27:07
bazo huul

#include<bits/stdc++.h>

using namespace std;

int main(){
int a,b,c,z,x,d;

cin>>a>>b>>c;

z=a;
x=b;
d=c;
if(b>c&&b>a){
a=b;
b=z;
}

else if(c>b&&c>a){
a=c;
c=z;
}

if(a*a==b*b+c*c) cout<<"Right"<<endl;
else if(a*a>b*b+c*c) cout<<"Obtuse"<<endl;
else if(a*a<b*b+c*c) cout<<"Acute"<<endl;

return 0;
}
2022-09-19 11:06:59
package kj;

import java.util.Scanner;

public class ewr {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
System.out.print("A=");
int nu1= scan.nextInt();
System.out.print("B=");
int nu2= scan.nextInt();
System.out.print("C=");
int nu3= scan.nextInt();
//
int a=(nu1*nu1);
int b=(nu2*nu2);
int c=(nu3*nu3);

if(a+b==c)
{
System.out.print("Right");
}
if(a+b>c)
{
System.out.print("Acute");
}
if(a+b<c)
{
System.out.print("Obtuse");
}
scan.close();


}

}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.