1106奖学金(sort排序) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;//这里注意一下书写的顺序,不然也会出现调用上的错误st…… 题解列表 2024年06月07日 0 点赞 0 评论 360 浏览 评分:0.0
1107纪念品分组(sort排序加指针移动) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int p1, int p2){ re…… 题解列表 2024年06月07日 0 点赞 0 评论 154 浏览 评分:0.0
1108守望者的逃离(dp动态规划) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long M;//魔法初值long long S;//出口距离long long T…… 题解列表 2024年06月07日 0 点赞 0 评论 231 浏览 评分:0.0
题解 1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll eee(ll a){ ll …… 题解列表 2024年06月08日 0 点赞 0 评论 121 浏览 评分:0.0
2247: 蓝桥杯算法提高-输出三个整数的最大数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll myMax(ll a,ll b,l…… 题解列表 2024年06月08日 0 点赞 0 评论 124 浏览 评分:0.0
1109Hanoi双塔问题(利用一维数组存储结果) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ long long n; cin >> n; //设计一个数组,将一个…… 题解列表 2024年06月08日 0 点赞 0 评论 193 浏览 评分:0.0
1111Cylinder(数学与语文的结合) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define PI 3.141592653589793//这道题考的是语文阅读理解吧?//首…… 题解列表 2024年06月08日 0 点赞 0 评论 177 浏览 评分:0.0
题解 2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5; //此行可以删去int main(){ …… 题解列表 2024年06月09日 0 点赞 0 评论 121 浏览 评分:0.0
题解 1242: 矩阵转置 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5;int a[N][N];int main(){…… 题解列表 2024年06月09日 0 点赞 0 评论 147 浏览 评分:0.0
1242: 矩阵转置 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1000;ll a…… 题解列表 2024年06月09日 0 点赞 0 评论 229 浏览 评分:0.0