Submit | All submissions | Best solutions | Back to list |
RETO11MAR - RETO EGIPTO |
Long ago, the Egyptians discovered that a triangle with sides 3, 4 and 5 had a right angle as its largest angle. Determine if other triangles have a similar property.
Input
Entry represents several test cases, followed by a line containing 0 0 0. Each test case has three positive integers less than 30000, which indicates the lengths of the sides of a triangle.
Output
Para cada caso de prueba, una línea que contiene "bien" si el triángulo es un triángulo rectángulo, y una línea que contiene "mal" si el triángulo no es un triángulo rectángulo.
Example
Input:6 8 10
25 52 60
48 60 36
0 0 0
Output:bien
mal
bien
Added by: | MARATON AFDM |
Date: | 2015-09-24 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | MAWK BC C NCSHARP CSHARP C++ 4.3.2 COFFEE DART FORTH JAVA JS-RHINO JULIA KTLN OCT PHP PROLOG PYPY3 R RACKET SQLITE SWIFT UNLAMBDA |
hide comments
2015-09-25 10:08:04 wisfaq
Missing English output description. Unnecessary language restrictions. Move to tutorial and hide. |
|
2015-09-24 23:02:36 Vladimir
Should be moved to tutorials? |