当前位置:网站首页>ZZULIOJ:1029: 三角形判定
ZZULIOJ:1029: 三角形判定
2022-08-10 03:39:00 【追上】
1029: 三角形判定
时间限制: 1 Sec 内存限制: 30 MB
[状态] [讨论版] [提交] [命题人:admin]
题目描述
给你三个正整数,判断用这三个整数做边长是否能构成一个三角形。
输入
输入为三个int范围的正整数,中间有一个空格隔开。
输出
如果能构成三角形,输出"Yes",否则输出"No"
样例输入 Copy
3 4 5样例输出 Copy
Yes参考代码
#include <stdio.h>
#include <math.h>
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a+b>c&&a+c>b&&b+c>a)
printf("Yes");
else
printf("No");
return 0;
}边栏推荐
猜你喜欢

Evaluation and Construction of Enterprise Network Security Capability from the Sliding Ruler Model

软件测试这些基本类型你知道吗?

Do you know these basic types of software testing?

leetcode-218.天际线问题

Software life cycle (the work of each phase of software engineering)

C语言顺序表(源码)

Did not detect default resource location for test class xxxx

Jackson的ObjectMapper在项目中的主要运用

Take you to an in-depth understanding of the version update of 3.4.2, what does it bring to users?

【Mindspore】【310推理】导入mindir文件出错
随机推荐
搭建Prometheus+Grafana框架监控Hyperledger Fabric的运行
leetcode-218.天际线问题
如何将 @Transactional 事务注解运用到炉火纯青?
请问mindspore支持l1范数归一化吗
electron 应用开发优秀实践
TCP协议之《ACK报文限速》
嵌入式分享合集32
UDP协议之《套接口阻塞选项UDP_CORK》
Pytorch中的torch.index_select对应MindSpore哪个方法
TCP协议之《Out-Of-Window报文限速》
It's almost 35, still "did a little"?What happened to the test workers who had been in the industry for a few years?
mindspore安装过程中报错cannot find zlib
【Verilog数字系统设计(夏雨闻)5-------模块的结构、数据类型、变量和基本运算符号1】
一个刚入行的测试员怎么样做好功能测试?测试思维真的很重要
Do you know these basic types of software testing?
TCP协议之《Pacing功能》
测试常见问题100类(1)
Flink CDC介绍和个人理解
Classes and interfaces
【单调栈】【概念讲解&&模板代码】