在函数内直接相加实现拼接 摘要:解题思路:先定义两个字符串类型的变量依次输入,然后调用函数,在函数内通过相加实现字符串的拼接注意事项:参考代码:#include<bits/stdc++.h>using namespace…… 题解列表 2025年04月09日 1 点赞 0 评论 191 浏览 评分:10.0
连续使用for循环嵌套 摘要:解题思路:先定义两个二维数组,一个为原始数组,另外一个为临时数组,然后把临时数组对应下标的元素的值赋值给原始数组元素对应下标的数值注意事项:在赋值的时候两个数组元素下标要对应正确,可以先手动模拟代码执…… 题解列表 2025年04月09日 1 点赞 0 评论 205 浏览 评分:10.0
哈哈哈哈哈 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<algorithm>using namespace std;const int N…… 题解列表 2025年04月09日 0 点赞 0 评论 70 浏览 评分:0.0
C++个人写法(非二分) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define ll long longint main(){ …… 题解列表 2025年04月09日 0 点赞 0 评论 170 浏览 评分:0.0
蓝桥杯2018年第九届真题-迷宫与陷阱 BFS 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb…… 题解列表 2025年04月09日 0 点赞 0 评论 102 浏览 评分:0.0
题解 2236: 蓝桥杯算法训练-大小写转换 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ strin…… 题解列表 2025年04月08日 0 点赞 0 评论 81 浏览 评分:0.0
题解 2212: 蓝桥杯算法训练-景点游览 摘要:解题思路:把小的数慢慢往后面放就可以啦。注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){&nbs…… 题解列表 2025年04月08日 0 点赞 0 评论 72 浏览 评分:0.0
数学的图表 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,m,k; while(scanf("…… 题解列表 2025年04月08日 0 点赞 0 评论 80 浏览 评分:0.0
根据定义求解 摘要:解题思路:质数的定义是除了1和它本身,即2~n-1(假设输入的数为n)的范围内没有一个数能整除n,根据这个要求使用for循环求解注意事项:注意增加一个判断标识flag,若没有一个2~n-1的数能整除n…… 题解列表 2025年04月08日 1 点赞 0 评论 151 浏览 评分:10.0
老王赛马(贪心) 摘要:解题思路:排序 贪心注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint&nb…… 题解列表 2025年04月08日 0 点赞 0 评论 64 浏览 评分:10.0