• 1478 Determine a triangle

    时间限制 : 2000/1000 MS(Java/Others) | 内存限制 : 65536/32768 KB(Java/Others)

    提交数 : 618 | 通过数 : 145

    题目描述

    The problem is very very simple.Give you three segments, determine which kind of triangle will be form.

    Triangle will have five kind:

    1.EquilateralTriangle ,the lengths of three edges are equal.

    2.IsoscelesTriangle ,only two edges' lengths are equal.

    3.RightTriangle ,exist a angle equal 90°.

    4.AcuteTriangle ,all three angle is less than 90°.

    5.ObtuseTriangle ,exist a angle more than 90°.


    输入要求

    Give you three integers represent the three segments.

    All integers are less than 100,000,000 and more than 1.


    输出要求

    Output which Triangle the three segments will form.

    If they can satisfy two kind Triangles, just output the two word except the "Triangle" ordered by the kind number and add a "Triangle" in the end.

    If they can't form a Triangle ,Just output "Not a Triangle".


    输入样例

    3 3 3

    输出样例

    EquilateralAcuteTriangle

    提示

    Do not laugh at my poor english.

    来源

    NBU OJ

    [ 返回顶端 ] | [ 代码提交 ] | [ 统计数据 ] | [ 历史提交 ]