/ OPS / 题库 /

Superman's triangle I

Superman's triangle I

#描述#
During superman’s childhood, he has been addicting to playing with sticks. After all, superman is only a child. He tries his best to form a triangle by using such sticks (None of them can be bended).

#格式#
##输入格式##
Given an integer n (3&lt=n&lt=30), which means the total number of sticks (Number 0 indicates the end of input). And n integers followed by mean the different length of such sticks(1&lt=len[i]&lt=100).

##输出格式##
If such sticks can form a triangle (All of them should be used), please print “Yes”, or print the word “No”.

#样例1#
##样例输入1##

3
20 30 10
4
20 30 10 10
0

##样例输出1##

No
Yes

#限制#
1000ms
32768KB

#提示#

#来源#

信息

ID
1065
难度
5
分类
category1 点击显示
标签
递交数
0
已通过
0
通过率
?
上传者