请从标准输入流(控制台)中获取 a、b、c,它们分别代表三角形的三条边长,判断这三条边是否能组成一个三角形,当判断为是时,你应该使用 print 语句输出 Is a triangle,当判断为否时,则使用 print 语句输出 Not a triangle
1
≤
a
,
b
,
c
≤
1
0
5
1≤a,b,c≤10^5
1≤a,b,c≤105
评测机将通过执行命令 python main.py 来执行你的代码,并将 a,b,c 作为标准输入从控制台输入,每个参数单独一行。
样例一
当 a = 15,b = 12,c = 16 时,程序执行打印出的结果为:
Is a triangle
样例二
当 a = 10, b = 7, c = 1 时,程序执行打印出的结果为:
Not a triangle
# write your code here
# read data from console
a = int(input())
b = int(input())
c = int(input())
if a+b>c and a+c>b and b+c>a:
print("Is a triangle")
else:
print("Not a triangle")
# output the answer to the console according to the requirements of the question