1751: 【CSP分支】判断能否构成三角形▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:3

Description

输入三个整数,表示3条线段的长度,判断这三条线段能否构成三角形。能构成就输出 Yes ,否则输出No 。

三角形的判断标准是:任意两边之和要大于第三边,比如有一个三角形的三条边分别为: lns="http://www.w3.org/1998/Math/MathML">3 、 lns="http://www.w3.org/1998/Math/MathML">5 、lns="http://www.w3.org/1998/Math/MathML">7 ,这个三角形的三条边就满足 lns="http://www.w3.org/1998/Math/MathML">3+5>7 且 lns="http://www.w3.org/1998/Math/MathML">3+7>5 ,且 lns="http://www.w3.org/1998/Math/MathML">5+7>3,因此这三条边能够构成三角形;

再比如,一个三角形的三条边为 lns="http://www.w3.org/1998/Math/MathML">3 、 lns="http://www.w3.org/1998/Math/MathML">8 、 lns="http://www.w3.org/1998/Math/MathML">5 ,那么因为 lns="http://www.w3.org/1998/Math/MathML">3+5 不满足大于 lns="http://www.w3.org/1998/Math/MathML">8 ,就不能构成三角形。

Input

三个整数。

Output

Yes lns="http://www.w3.org/1998/Math/MathML">or No 

Sample Input Copy

3 8 5

Sample Output Copy

No