26行解决问题 摘要:解题思路:1.一个数组存数字的读法,一个数组存单位的读法,这里不需要个位,将个位置空就行,因为平时也不读 “个” 。2. 通过输入字符串,让每位字符和 ' 0 ' 做差,来获取每一位的…… 题解列表 2024年03月21日 1 点赞 1 评论 693 浏览 评分:10.0
小明的A+B 小明你为什么看题看一半 考虑到的条件比较多所以用了多个if和elseif#include#includeintmain(){intn;scanf("%d",&n);while(n--){inta,b;scanf("%d%d",&a,&b);intc,d;if(a/100=100)printf("%d\n", 题解列表 2024年03月21日 0 点赞 0 评论 547 浏览 评分:0.0
找出最长的字符串来 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void lang(char *x1,char *x2,char *x3,char *x4,char…… 题解列表 2024年03月20日 0 点赞 0 评论 531 浏览 评分:2.0
【C语言题解/Hanoi塔/递归】编写题解 1684: 数据结构-n阶Hanoi塔问题 ```#includevoidHanoi(int,char,char,char);//定义num计算移动次数intnum=1;intmain(){intn,i;while(scanf("%d",&n)!=EOF){num=1;Hanoi(n, 题解列表 2024年03月20日 0 点赞 0 评论 619 浏览 评分:0.0
十->二进制转换 摘要: 有点复杂哈,主要是格式问题 #include int main() { int n; while((scanf("%d",&n))!=E…… 题解列表 2024年03月20日 0 点赞 0 评论 693 浏览 评分:9.9
众数问题怎么求 摘要: 可能会有bug 但是能通过 #include int main() { int n; scanf("%d",&n); …… 题解列表 2024年03月20日 0 点赞 0 评论 514 浏览 评分:0.0
明明的随机数(一点都不随机) 摘要:先去重后排序 #include #include int main() { int n,i,j; scanf("%d",&n); …… 题解列表 2024年03月20日 0 点赞 0 评论 722 浏览 评分:9.9
无需链表,一维数组循环解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int magic(const int n,int cu){ int a[n]; //用数组记录…… 题解列表 2024年03月20日 0 点赞 0 评论 566 浏览 评分:0.0
编写题解 2064: [STL训练]2010辽宁省决赛 SPY 摘要:解题思路:注意事项:参考代码:int main(){ int a,b,c; char arr[150][50] = { 0 }; while (scanf("%d %d %d"…… 题解列表 2024年03月20日 0 点赞 0 评论 595 浏览 评分:0.0
快速排列交错相加求和(C) 摘要:解题思路:分别输入两数组,运用快速排列从小到大排列,再交错相加即可注意事项:题目需要我们求两数绝对值和的最大值,注意判断参考代码:#include<stdio.h>void Quicksort(int…… 题解列表 2024年03月19日 0 点赞 1 评论 898 浏览 评分:7.0