Egypt
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
A long time ago, the Egyptians discovered that a triangle with sides of length and had a right angle as its largest angle. You need to determine if other triangles have a similar property.
Input
Consists of several test cases, followed by a line containing . Each test case includes three positive integers, each less than , representing the lengths of the sides of a triangle.
Output
For each test case, print a line containing "right" if the triangle is a right triangle, and "wrong" if the triangle is not a right triangle.
Examples
Input #1
Answer #1
Submissions 12K
Acceptance rate 31%