当前位置:网站首页>ZZULIOJ:1030: 判断直角三角形
ZZULIOJ:1030: 判断直角三角形
2022-08-10 03:39:00 【追上】
1030: 判断直角三角形
时间限制: 1 Sec 内存限制: 30 MB
[状态] [讨论版] [提交] [命题人:admin]
题目描述
输入三个正整数,判断用这三个整数做边长是否能构成一个直角三角形。
输入
输入三个正整数。
输出
能否构成直角三角形。如能输出:yes.若不能,输出:no。
样例输入 Copy
6 8 10
样例输出 Copy
yes
参考代码
#include <stdio.h>
#include <math.h>
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a*a==b*b+c*c||b*b==a*a+c*c||c*c==a*a+b*b)
printf("yes");
else
printf("no");
return 0;
}
边栏推荐
- It's almost 35, still "did a little"?What happened to the test workers who had been in the industry for a few years?
- MySQL数据库初体验
- 常用类以及接口
- program internationalization
- 数据库中数据的正确性和相容性是什么
- 全面深入了解什么是反向代理和负载均衡
- Qt 线程常用同步方式
- Dynamic Web Development Fundamentals
- Shell 文本三剑客 awk
- Did not detect default resource location for test class xxxx
猜你喜欢
order by注入与limit注入
同样是初级测试,凭什么他比我薪资高 5000 块?
How to quickly become a software test engineer?What skills do testers need for a monthly salary of 15k?
动态网页开发基础
Dynamic Web Development Fundamentals
超全面的Android面试题汇总
Do you know these basic types of software testing?
No ‘Access-Control-Allow-Origin‘ header is present on the requested resource.
Take you to an in-depth understanding of the version update of 3.4.2, what does it bring to users?
program internationalization
随机推荐
Embedded Sharing Collection 32
【mindspore产品】【8卡分布式训练】davinci_model : load task fail, return ret
The same is a primary test, why does he pay 5,000 yuan more than me?
整理零碎东西
Qt编写物联网管理平台50-超强跨平台
TCP协议之《MTU探测功能》
TCP协议之《QUICKACK模式》
电话自动拨号在电脑上自动拨打
TCP协议之《数据与控制流程交叉时的延迟处理》
创意优选技术
【网络迁移】Pytorch中的F.interpolate对应MindSpore哪个方法
Neo4J 与 Cypher 查询语言基础
常用类以及接口
请教各位confluence部署连接数据库成功,但是在后面建表设置的时候报错
Did not detect default resource location for test class xxxx
TCP协议之《对端MSS值估算》
小程序wxs
TCP协议之《延迟ACCEPT》
互联网公司高频面试题精讲:测试计划和测试方案有什么区别?
TCP协议之《ACK状态4种详解》