数字后移(基础思路) 摘要:解题思路:两个数组,a[]保存原始输入值,b[]的头存a[]的尾,最后将a[]的后半部分给b[];注意事项:参考代码:#include<iostream>using namespace std;int…… 题解列表 2022年10月21日 0 点赞 0 评论 316 浏览 评分:9.9
完全背包问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxs 110#define maxb 10#define max…… 题解列表 2022年10月21日 0 点赞 0 评论 415 浏览 评分:9.9
三个数排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <algorithm> int main(){ int a,b,c; …… 题解列表 2022年10月20日 0 点赞 0 评论 262 浏览 评分:9.9
用了数组的知识 摘要:解题思路:定义一个数组分别存储每次输入的值并求和,存储在sum变量里最后除以输入的个数得到平均值。注意事项:需要一个临时变量m来接收n的值,因为此处使用了while循环将n的值变化,所以需要提前准备一…… 题解列表 2022年10月20日 0 点赞 0 评论 1082 浏览 评分:8.0
1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a>b){in…… 题解列表 2022年10月20日 0 点赞 0 评论 354 浏览 评分:9.9
1026: [编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,d,e,f,g,h,i,j; cin >>a>>b…… 题解列表 2022年10月20日 0 点赞 0 评论 292 浏览 评分:7.3
蓝桥杯算法提高VIP-最大乘积 摘要:#define _CRT_SECURE_NO_WARNINGS #include<cstdio> #include<cstring> #include<algorithm> #include<…… 题解列表 2022年10月19日 0 点赞 0 评论 455 浏览 评分:9.9
swap () :交换两个变量值 摘要:解题思路: 使用 STL 算法:swap(),交换两个元素注意事项:参考代码:#include<iostream>using namespace std;#define myswap(x,y) (s…… 题解列表 2022年10月19日 0 点赞 0 评论 283 浏览 评分:0.0
复数求和问题 摘要:解题思路:建立链表,求链表指定数据域的和。注意事项:参考代码:#include<iostream>using namespace std;#define OK 1#define ERROR 0#def…… 题解列表 2022年10月19日 0 点赞 0 评论 262 浏览 评分:8.0
高精度乘法----模拟竖式乘法计算 摘要:解题思路:由于相乘之后的位数较大,已经超过了可存放整数的范围,需要开辟数组来存放乘积结果的每一位数。由于待相乘的两个整数也较大,需要分别使用两个数组存放,然后将乘积结果存放在另一个更大的整型数组中,所…… 题解列表 2022年10月18日 0 点赞 0 评论 872 浏览 评分:8.0