当前位置:网站首页>27. Input 3 integers and output them in descending order. Pointer method is required.
27. Input 3 integers and output them in descending order. Pointer method is required.
2022-07-03 16:56:00 【I'm not Xiao Haiwa~~~~】
int sortnum(int *a,int *b ,int *c)
{
int minnum=min(min(*a,*b),*c);
int maxnum=max(max(*a,*b),*c);
int midnum=*a+*b+*c-minnum-maxnum;
printf("%d %d %d\n",maxnum,midnum,minnum);
}
边栏推荐
- Learn from me about the enterprise flutter project: simplified framework demo reference
- 2022.02.14_ Daily question leetcode five hundred and forty
- Assembly instance analysis -- screen display in real mode
- Svn usage specification
- How to set up SVN server on this machine
- What material is sa537cl1? Sa537cl1 corresponds to the national standard material
- Pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs
- IDEA-配置插件
- [mathematical logic] equivalent calculus and reasoning calculus of propositional logic (propositional logic | equivalent calculus | principal conjunctive (disjunctive) paradigm | reasoning calculus)**
- [combinatorics] recursive equation (the relationship theorem between the solution of the recursive equation and the characteristic root | the linear property theorem of the solution of the recursive e
猜你喜欢
智慧之道(知行合一)

MySQL Basics

Network security web penetration technology

Pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs

What material is sa537cl2? Analysis of mechanical properties of American standard container plate

QT serial port UI design and solution to display Chinese garbled code

PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug

NLP四范式:范式一:非神经网络时代的完全监督学习(特征工程);范式二:基于神经网络的完全监督学习(架构工程);范式三:预训练,精调范式(目标工程);范式四:预训练,提示,预测范式(Prompt工程)

Web crawler knowledge day03

C语言按行修改文件
随机推荐
word 退格键删除不了选中文本,只能按delete
27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。
What material is 12cr1movr? Chemical property analysis of pressure vessel steel plate 12cr1movr
深入理解 SQL 中的 Grouping Sets 语句
Svn usage specification
【Try to Hack】主动侦查隐藏技术
Résolution de l'instance d'assemblage - - affichage à l'écran en mode réel
Summary of three methods of PHP looping through arrays list (), each (), and while
What kind of material is 14Cr1MoR? Analysis of chemical composition and mechanical properties of 14Cr1MoR
PHP secondary domain name session sharing scheme
Le zèbre a été identifié comme un chien, et la cause de l'erreur d'AI a été trouvée par Stanford
Kotlin学习快速入门(7)——扩展的妙用
远程办公之如何推进跨部门项目协作 | 社区征文
[combinatorics] recursive equation (outline of recursive equation content | definition of recursive equation | example description of recursive equation | Fibonacci Series)
[Jianzhi offer] 57 - ii Continuous positive sequence with sum s
于文文、胡夏等明星带你玩转派对 皮皮APP点燃你的夏日
网络安全web渗透技术
(Supplement) double pointer topic
Golang anonymous function use
LeetCode 1658. Minimum operand to reduce x to 0