![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
算法
搞好算法进大厂
Zs0509
要吃苦。
展开
-
大写字母转小写
试题 算法训练 P0103 资源限制 时间限制:1.0s 内存限制:256.0MB 从键盘输入一个大写字母,要求改用小写字母输出。 输入 A 输出 a #include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own...原创 2020-04-22 23:28:45 · 1117 阅读 · 0 评论 -
三个整数排序
试题 算法训练 排序 资源限制 时间限制:1.0s 内存限制:512.0MB 问题描述 编写一个程序,输入3个整数,然后程序将对这三个整数按照从大到小进行排列。 输入格式:输入只有一行,即三个整数,中间用空格隔开。 输出格式:输出只有一行,即排序后的结果。 输入输出样例 样例输入 9 2 30 样例输出 30 9 2 #include <iostream> #inc...原创 2020-04-22 23:09:29 · 1223 阅读 · 0 评论 -
猴子吃包子
试题 算法训练 猴子吃包子 资源限制 时间限制:1.0s 内存限制:256.0MB 问题描述 从前,有一只吃包子很厉害的猴子,它可以吃无数个包子,但是,它吃不同的包子速度也不同;肉包每秒钟吃x个;韭菜包每秒钟吃y个;没有馅的包子每秒钟吃z个;现在有x1个肉包,y1个韭菜包,z1个没有馅的包子;问:猴子吃完这些包子要多久?结果保留p位小数。 输入格式 输入1行,包含7个整数,分别表示吃不...转载 2020-04-22 22:28:08 · 198 阅读 · 0 评论 -
2020年3月4日
```c #include <stdio.h> #include <stdlib.h> #include <string.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int ar...原创 2020-04-03 22:28:51 · 144 阅读 · 0 评论 -
蓝桥杯2020年1月31日
回文数: for(int i=1000;i<10000;i++) { int a,b,c,d; a=i/1000;//千位数 b=i/100%10;//百位数 c=i/10%10;//十位数 d=i%10;//个位数 if(a==d&&b==c) printf("%d\n",i); } ...原创 2020-02-01 13:20:58 · 227 阅读 · 0 评论