当前位置:网站首页>ZZULIOJ:1021: 三个整数的最大值
ZZULIOJ:1021: 三个整数的最大值
2022-08-10 03:39:00 【追上】
1021: 三个整数的最大值
时间限制: 1 Sec 内存限制: 30 MB
[状态] [讨论版] [提交] [命题人:admin]
题目描述
从键盘输入三个整数x,y和z,求出其中最大的数。
输入
输入三个整数,用空格隔开。
输出
输出最大整数。
样例输入 Copy
20 16 18
样例输出 Copy
20
参考代码
#include <stdio.h>
#include <math.h>
int main()
{
int x, y, z, max;
scanf("%d %d %d", &x, &y, &z);
max=x;
if(y>max)
max=y;
if(z>max)
max=z;
printf("%d", max);
return 0;
}
边栏推荐
猜你喜欢
ARP Spoofing - Tutorial Details
【网络迁移】Pytorch中的torch.is_tensor对应MindSpore哪个接口
Take you to an in-depth understanding of the version update of 3.4.2, what does it bring to users?
It's almost 35, still "did a little"?What happened to the test workers who had been in the industry for a few years?
一个刚入行的测试员怎么样做好功能测试?测试思维真的很重要
数据库学习真难,头大,有偿提问
RoyalScope分析仪:发现CAN总线波形台阶和信号幅值低的问题
How to quickly become a software test engineer?What skills do testers need for a monthly salary of 15k?
Difference between netstat and ss command
ES高亮显示语法
随机推荐
Neo4J 与 Cypher 查询语言基础
TCP协议之《TSQ限值tcp_limit_output_bytes》
原型和原型链
Pytorch中的torch.index_select对应MindSpore哪个方法
How does a new tester do functional testing?Test thinking is really important
一种能让大型数据聚类快2000倍的方法,真不戳
[STL]map与set
Embedded Sharing Collection 32
多元函数的3D可视化,终于被我总结出来了,数学真是太美了
Flink Table&Sql API使用遇到的问题总结
@Autowired注解 --required a single bean, but 2 were found出现的原因以及解决方法
maya视图如何切换
ZZULIOJ:1027: 判断水仙花数
留言板
Flink学习15:Flink自定义数据源
如何开启热部署Devtools
sql优化
树的介绍、树的定义和基本术语、二叉树的定义和性质、二叉树的顺序表示与实现和链式表示与实现以及树的遍历方法以及两种创建方式
Pen paper records
软件的生命周期(软件工程各阶段的工作)