出现次数最多的整数(c语言) 摘要:解题思路:输入5个数,需要一个数组a接收这5个数字,一个标记数组(开大一点),赋初值为0, 每次接收到的数字,例如150,就把book[150]++; 再比较一下哪个标记数…… 题解列表 2022年09月15日 0 点赞 0 评论 427 浏览 评分:9.9
数组内元素的调换 摘要:答案错误了两次,第一是因为输出有问题,第二次因为没有理清调换索引的关系,要先调换最小值与第一个元素,然后再去找最大值的索引,再调换最大值与第十个元素 - 定义了寻找最大值和最小值索引的函数 -…… 题解列表 2022年09月15日 0 点赞 0 评论 471 浏览 评分:9.9
动态规划—C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #include <malloc.h> #include <math.h> #def…… 题解列表 2022年09月15日 0 点赞 0 评论 613 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,a,b; scanf("%d %d",&m,&n); a=m; do { a--; …… 题解列表 2022年09月16日 0 点赞 0 评论 297 浏览 评分:0.0
利用动态vector进行求解 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;int main(){ int i,j;/* int n,m;…… 题解列表 2022年09月16日 0 点赞 0 评论 322 浏览 评分:0.0
0916每日一题【C++】 摘要:解题思路:找到对称轴,实现字符串之间的相加注意事项:C++,而且注意如果s不定义为"A”的话,i要从0开始,且循环体要交换顺序参考代码:#include <iostream>//李政 #includ…… 题解列表 2022年09月17日 0 点赞 2 评论 280 浏览 评分:9.9
1122: C语言训练-亲密数 摘要:```cpp #include #include using namespace std; mapm; void judge(int a) { int result=0; …… 题解列表 2022年09月17日 0 点赞 1 评论 908 浏览 评分:9.9
1123: C语言训练-列出最简真分数序列* 摘要:```cpp #include using namespace std; bool Judge(int &a,int &b) { for(int i=2;i…… 题解列表 2022年09月17日 0 点赞 0 评论 486 浏览 评分:9.9
1124: C语言训练-大、小写问题 摘要:```cpp #include #include using namespace std; int main() { char ch[101]; gets(ch); …… 题解列表 2022年09月17日 0 点赞 0 评论 463 浏览 评分:9.9
1125: C语言训练-委派任务* 摘要:```cpp #include using namespace std; int main() { int a,b,c,d,e,f; for(a=0;a…… 题解列表 2022年09月17日 0 点赞 0 评论 590 浏览 评分:8.0