21490_Egyp

2022-5-16 18:19| 发布者: Hocassian| 查看: 48| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-4-89505325376600-Problem List-采集的数据-后羿采集器.html

Pro.ID

21490

Title

Egypt

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=21490

AC

107

Submit

333

Ratio

32.13%

时间&空间限制

  • Time Limit: 0/0 MS (Java/Others)     Memory Limit: 0/0 K (Java/Others)
  • 描述

    A long time ago, the Egyptians figured out that a triangle with sides of length 3, 4, and 5 had a right angle as its largest angle. You must determine if other triangles have a similar property.

    输入

    Input represents several test cases, followed by a line containing 0 0 0. Each test case has three positive integers, less than 30,000, denoting the lengths of the sides of a triangle.

    输出

    Description

    A long time ago, the Egyptians figured out that a triangle with sides of length 3, 4, and 5 had a right angle as its largest angle. You must determine if other triangles have a similar property.

    Input

    Input represents several test cases, followed by a line containing 0 0 0. Each test case has three positive integers, less than 30,000, denoting the lengths of the sides of a triangle.

    Output

    For each test case, a line containing "right" if the triangle is a right triangle, and a line containing "wrong" if the triangle is not a right triangle.

    Sample Input

    6 8 10
    25 52 60
    5 12 13
    0 0 0

    Sample Output

    right
    wrong
    right

    Hint

    请忽略本题。

    Source

    样例输入

    6 8 10
    25 52 60
    5 12 13
    0 0 0

    样例输出

    right
    wrong
    right

    提示

    请忽略本题。


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部