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
2024-12-07 04:54:24
#include<bits/stdc++.h>
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;
}
2024-11-21 04:20:57
⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⢠⠊⠁⠀⠀⠈⠉⠒⢄⠀⠀⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣷⣄⡀⠀⣴⡿⠛⢶⣄⠀⠀⣠⡴⠾⢧⠀⢀⣼⣿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠻⣿⣿⡿⣿⠛⣿⡧⠸⣿⣿⡷⡶⠠⠏⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡟⠉⠛⢛⣚⡉⠀⠀⠈⠛⠋⠁⠸⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣦⣤⣴⣿⠿⣷⣤⡤⠤⠖⠣⡀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣁⣿⡿⢦⣀⠀⠀⠀⠀⠀⠀⠈⠓⢿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⠛⠛⠉⠉⠉⠀⠀⠀⠘⢤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⡻⣿⠿⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⠲⠦⠤⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠑⠢⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢀⣠⠴⠒⠓⠛⢻⣿⡿⠿⠛⠉⠻⢿⣿⣿⠿⠿⠛⠓⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢆⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢀⣶⠏⣼⠀⠀⠀⠀⠈⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢧⠀⠀⠀⠀
⠀⠀⠀⠀⣠⣿⣯⡼⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⡇⠀⠀⠀
⠀⠀⠀⣰⣿⣿⣿⣿⣷⣶⣾⣇⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣦⣤⣤⡠⠀⣤⣿⣧⠀⠀⠀
⠀⠀⠀⣿⣿⣿⡿⢳⠶⢉⡿⣿⣜⡖⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣼⣄⡀⠀⠀⠀⠀⠀⢀⣤⣶⣿⣿⡿⡟⠫⡭⠽⣾⣟⡋⠀⠀⠀⠀
⠀⣀⣴⣿⣿⠿⠟⠁⣠⠞⢠⣿⣿⣿⣿⣧⣄⣀⣀⠀⠀⣀⣤⡶⢿⣿⣿⣿⣶⣀⣀⣤⣾⣿⣿⣿⣿⣿⠁⠙⣆⠀⠀⢾⣿⣿⣦⡀⠀⠀
⣿⣿⣿⡿⣿⣷⣠⡾⠃⢠⣿⣿⠿⣿⣿⣿⣿⣿⣿⣷⣾⣿⣿⠅⠺⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡾⣆⠈⢷⡄⣠⣾⣿⣿⣿⣷⣄
⡿⣿⣿⣿⣎⣿⡿⠀⣰⣿⣿⣿⣷⡈⢻⣿⣿⣿⣿⣿⣟⡉⠀⠀⠀⠈⠉⠛⢿⣿⣿⣿⣿⣿⣿⠟⣱⣾⣿⣿⣇⠀⢹⣿⢏⣾⣿⣿⣿⡟
⣷⣿⣿⡿⢏⣿⡇⢀⣿⣿⣿⣿⣿⡛⠀⠈⢻⣿⣿⠟⠛⠛⠁⠀⠀⠀⠀⠀⠉⠹⣿⣿⣿⡏⠁⠀⢿⣿⣿⣿⣿⡇⠘⣿⣼⢿⣿⣿⣾⣿
⢹⣿⡿⣿⣿⡿⢡⠞⠁⠽⢿⣿⡇⠀⠀⢠⣞⢿⣄⣤⣀⣀⠀⠀⢸⣀⠀⠀⠀⡀⠈⠉⠙⢧⡀⠀⠀⣿⣿⠟⠙⠻⣆⠻⣿⣿⣿⣿⣿⠋
⢸⣿⣿⣿⣿⣧⣿⣦⣤⣀⣸⣿⠁⠀⢰⠿⡿⣿⡿⠿⠿⠿⠷⣄⠈⠿⠛⠻⠿⢿⣶⣄⣀⣾⣿⡀⠀⣻⣷⣀⣠⣴⣿⣆⣿⣿⣿⣿⣿⠀
⣿⣿⣿⣿⣿⣿⡿⠋⠈⠉⠉⠃⢸⣶⣾⠀⠀⣹⣇⠀⣆⠀⠀⠀⣶⠀⠀⠀⣰⢀⢿⠉⠉⠉⠙⣷⢾⡟⠛⠉⠉⠈⠻⣿⣿⣿⣿⣿⣿⠀
⢸⣿⣻⣿⣿⣯⣀⡀⠀⠀⢀⣠⢘⣿⣿⣶⠀⢻⣿⣿⣿⣧⣀⣀⣿⣦⣀⡐⢓⣺⣿⠀⠀⠀⣵⡆⢸⡷⣄⣀⣐⢀⣀⣸⣿⣿⣿⣿⡇⠀
⣼⣿⣛⣿⣿⣿⠉⠉⠉⠉⠉⠀⣸⣿⣿⡇⠀⢲⣿⠉⠉⠉⠳⣴⠋⠙⠻⣿⣿⣿⡇⠀⠀⣿⣿⠇⠀⣇⠀⠀⠉⠉⠉⢹⣿⣿⣿⣿⡇⠀
⠉⠛⢿⣿⡿⠿⡦⠀⠀⠀⠀⠀⣿⣯⣽⣇⠐⣿⣿⣿⢷⠦⡄⠀⠀⠀⢠⣿⣿⠟⠁⠀⣰⣿⡟⠀⠀⠘⢧⠲⠤⠤⠴⠿⠿⣿⣿⣿⡇⠀
2024-07-01 10:54:58
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⢠⠊⠁⠀⠀⠈⠉⠒⢄⠀⠀⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣷⣄⡀⠀⣴⡿⠛⢶⣄⠀⠀⣠⡴⠾⢧⠀⢀⣼⣿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠻⣿⣿⡿⣿⠛⣿⡧⠸⣿⣿⡷⡶⠠⠏⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡟⠉⠛⢛⣚⡉⠀⠀⠈⠛⠋⠁⠸⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣦⣤⣴⣿⠿⣷⣤⡤⠤⠖⠣⡀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣁⣿⡿⢦⣀⠀⠀⠀⠀⠀⠀⠈⠓⢿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⠛⠛⠉⠉⠉⠀⠀⠀⠘⢤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⡻⣿⠿⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⠲⠦⠤⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠑⠢⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢀⣠⠴⠒⠓⠛⢻⣿⡿⠿⠛⠉⠻⢿⣿⣿⠿⠿⠛⠓⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢆⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢀⣶⠏⣼⠀⠀⠀⠀⠈⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢧⠀⠀⠀⠀
⠀⠀⠀⠀⣠⣿⣯⡼⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⡇⠀⠀⠀
⠀⠀⠀⣰⣿⣿⣿⣿⣷⣶⣾⣇⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣦⣤⣤⡠⠀⣤⣿⣧⠀⠀⠀
⠀⠀⠀⣿⣿⣿⡿⢳⠶⢉⡿⣿⣜⡖⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣼⣄⡀⠀⠀⠀⠀⠀⢀⣤⣶⣿⣿⡿⡟⠫⡭⠽⣾⣟⡋⠀⠀⠀⠀
⠀⣀⣴⣿⣿⠿⠟⠁⣠⠞⢠⣿⣿⣿⣿⣧⣄⣀⣀⠀⠀⣀⣤⡶⢿⣿⣿⣿⣶⣀⣀⣤⣾⣿⣿⣿⣿⣿⠁⠙⣆⠀⠀⢾⣿⣿⣦⡀⠀⠀
⣿⣿⣿⡿⣿⣷⣠⡾⠃⢠⣿⣿⠿⣿⣿⣿⣿⣿⣿⣷⣾⣿⣿⠅⠺⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡾⣆⠈⢷⡄⣠⣾⣿⣿⣿⣷⣄
⡿⣿⣿⣿⣎⣿⡿⠀⣰⣿⣿⣿⣷⡈⢻⣿⣿⣿⣿⣿⣟⡉⠀⠀⠀⠈⠉⠛⢿⣿⣿⣿⣿⣿⣿⠟⣱⣾⣿⣿⣇⠀⢹⣿⢏⣾⣿⣿⣿⡟
⣷⣿⣿⡿⢏⣿⡇⢀⣿⣿⣿⣿⣿⡛⠀⠈⢻⣿⣿⠟⠛⠛⠁⠀⠀⠀⠀⠀⠉⠹⣿⣿⣿⡏⠁⠀⢿⣿⣿⣿⣿⡇⠘⣿⣼⢿⣿⣿⣾⣿
⢹⣿⡿⣿⣿⡿⢡⠞⠁⠽⢿⣿⡇⠀⠀⢠⣞⢿⣄⣤⣀⣀⠀⠀⢸⣀⠀⠀⠀⡀⠈⠉⠙⢧⡀⠀⠀⣿⣿⠟⠙⠻⣆⠻⣿⣿⣿⣿⣿⠋
⢸⣿⣿⣿⣿⣧⣿⣦⣤⣀⣸⣿⠁⠀⢰⠿⡿⣿⡿⠿⠿⠿⠷⣄⠈⠿⠛⠻⠿⢿⣶⣄⣀⣾⣿⡀⠀⣻⣷⣀⣠⣴⣿⣆⣿⣿⣿⣿⣿⠀
⣿⣿⣿⣿⣿⣿⡿⠋⠈⠉⠉⠃⢸⣶⣾⠀⠀⣹⣇⠀⣆⠀⠀⠀⣶⠀⠀⠀⣰⢀⢿⠉⠉⠉⠙⣷⢾⡟⠛⠉⠉⠈⠻⣿⣿⣿⣿⣿⣿⠀
⢸⣿⣻⣿⣿⣯⣀⡀⠀⠀⢀⣠⢘⣿⣿⣶⠀⢻⣿⣿⣿⣧⣀⣀⣿⣦⣀⡐⢓⣺⣿⠀⠀⠀⣵⡆⢸⡷⣄⣀⣐⢀⣀⣸⣿⣿⣿⣿⡇⠀
⣼⣿⣛⣿⣿⣿⠉⠉⠉⠉⠉⠀⣸⣿⣿⡇⠀⢲⣿⠉⠉⠉⠳⣴⠋⠙⠻⣿⣿⣿⡇⠀⠀⣿⣿⠇⠀⣇⠀⠀⠉⠉⠉⢹⣿⣿⣿⣿⡇⠀
⠉⠛⢿⣿⡿⠿⡦⠀⠀⠀⠀⠀⣿⣯⣽⣇⠐⣿⣿⣿⢷⠦⡄⠀⠀⠀⢠⣿⣿⠟⠁⠀⣰⣿⡟⠀⠀⠘⢧⠲⠤⠤⠴⠿⠿⣿⣿⣿⡇⠀
2024-05-05 13:21:57
skibidi sigma alpha rizz ohio gyatt
2024-05-02 15:03:45
Man i bet you aren't skibidi

Last edit: 2024-05-21 14:52:46
2024-02-29 10:01:23
Chipi chipi chapa chapa
Dubi dubi daba daba
Mágico mi dubi dubi
Boom, boom, boom, boom
Chipi chipi chapa chapa
Dubi dubi daba daba
Mágico mi dubi dubi
Booooooooooom
2024-01-29 06:23:50
#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;
}
itgelt har bhuu
2024-01-24 12:11:29
#include<stdio.h>

main(){
int a, b, c, d, e, f, g;
scanf("%d%d%d", &a, &b, &c);

if ( a >= b && a >= c){
f = a;
d = b;
e = c;
}
if ( b >= a && b >= c){
f = b;
d = a;
e = c;
}
if ( c >= a && c >= b){
f = c;
d = a;
e = b;
}

if ( f * f == d * d + e * e ){
printf("Right");
}else if (f * f > d * d + e * e) {
printf("Obtuse");
}else {
printf("Acute");
}
}
2024-01-22 06:33:36
#include <iostream>
#include <cstdlib>

using namespace std;

int main () {

int a, b, c;
cin >> a;
cin >> b;
cin >> c;
a=a*a;
b=b*b;
c=c*c;
if(a==b+c||b==a+c||c==a+b){
cout <<"Right";
} else{
if(a>c+b||b>c+a||c>b+a){
cout <<"Obtuse";
}else{
cout <<"Acute";
}
}
return 0;
} haha
2024-01-16 05:59:26
#include <iostream>
using namespace std;
int main ()
{
int a, b, c, urt, d, e;
cin >> a >> b >> c;
if ( a >= b && a >= c){
urt = a;
d = b;
e = c;
}
if ( b >= a && b >= c){
urt = b;
d = a;
e = c;
}
if ( c >= a && c >= b){
urt = c;
d = a;
e = b;
}

if ( urt * urt == d * d + e * e ){
cout << "Right" << endl;
}else if (urt * urt > d * d + e * e) {
cout << "Obtuse" << endl;
}else {
cout << "Acute" << endl;
}



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