当前位置:网站首页>3-1 compare size
3-1 compare size
2022-04-22 08:19:00 【Then peace and happiness】
This question requires any input 3 Integers output from small to large .
Input format :
Enter... On one line 3 It's an integer , Separated by spaces .
Output format :
In one line 3 Integers output from small to large , In the meantime “=>” Connected to a .
sample input :
4 2 8
sample output :
2=>4=>8
Reference code :
#include<stdio.h>
int main()
{
int x,y,z,min;
scanf("%d %d %d",&x,&y,&z);
if(x>y){
min = x;
x = y;
y = min;
}
if(x>z){
min = x;
x = z;
z = min;
}
if(y>z) {
min = y;
y = z;
z = min;
}
printf("%d->%d->%d",x,y,z);
return 0;
}
版权声明
本文为[Then peace and happiness]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220707571251.html
边栏推荐
- 迎接稳定币3.0时代 USDD带来金融创新
- 58 Technology Salon issue 28 - anjuke quality assurance system Salon
- PDH光端机4路E1+4路百兆以太网 4路2M光端机 FC单纤20公里 机架式
- 2022年全国中职组网络安全国赛赛题思路(仅自己一个做题的思路)——网络安全竞赛试题(10)
- Carrier grade double optical port protection 8e1 + 4-way physical isolation gigabit network optical transceiver 1000m network 100m optical transceiver
- monkey
- RSYNC及inotify远程同步
- 4E1+2路千兆隔离网络+4路百兆物理隔离网络PDH光端机
- 2-15 求组合数
- oh-my-notepro
猜你喜欢

OpenFeign的细节展示

MYSQL05_ORDR BY排序、LIMIT分组、GROUP BY分组

MySQL advanced view -- View introduction, view crud syntax, check options (cascaded, local), view update, view function, view case

二叉树

tf.keras.layers.Conv?D函数

CAS:36530-06-0氯化硼亚酞菁|亚酞菁|氯化硼亚酞菁|二氯硼酞菁染料|氯化亚酞菁硼|BORONSUBPHTHALOCYANINECHLORIDE

RSYNC及inotify远程同步

Magnesium oxide MgO crystal substrate | strontium titanate SrTiO3 crystal substrate | lithium niobate LiNbO3 crystal substrate; 10mm diameter

58技术沙龙第二十八期|安居客质量保障体系沙龙

路由模式的区别
随机推荐
OpenFeign的细节展示
Phthalocyanine platinum CAS: 14075-08-2 | zinc phthalocyanine ZnPc | mesoporous silicon @ upconversion @ ZnPc photosensitizer, emission below 100nm 650nm
OpenFeign超时设置
Provide 4-way E1 service ports, 4-way 100m isolation network, 2m E1 private network, multi service PDH optical transceiver
HLS / Chisel 实践CORDIC高性能计算复数平方根
OpenFeign调用详细日志展示
Dual channel optical network with 16 channels of E1 + 2m multi-channel optical transmission equipment
RSYNC及inotify远程同步
MYSQL05_ORDR BY排序、LIMIT分组、GROUP BY分组
2-15 find the combination number
jmeter_ Mysql database connection
变种快排:寻找最大的前K个数
monkey
力扣(LeetCode)111. 平衡二叉树(2022.04.21)
【ncnn】——param中-23300的意思
软件测试之接口自动化面试题汇总
2022年全国中职组网络安全国赛赛题思路(仅自己一个做题的思路)——网络安全竞赛试题(7)
无水葡萄糖 cas:50-99-7 D(+)-Glucose 分子量:180.156 分子式:C6H12O6 密度及沸点值
Layer1扩容:分片和可组合性
Integrated service PDH optical transceiver 4-way Gigabit isolated Ethernet + 4-way E1 private network service 2m integrated service optical transceiver