C++使用Swap函数倒置字符串 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int num = 0;// 读入字符串长度 cin >…… 题解列表 2024年10月07日 0 点赞 0 评论 221 浏览 评分:0.0
会战兵力 是80万对60万 优势在我 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int prime(ll x){ …… 题解列表 2024年10月07日 0 点赞 0 评论 149 浏览 评分:9.9
2825: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n;…… 题解列表 2024年10月06日 0 点赞 0 评论 215 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n,…… 题解列表 2024年10月06日 0 点赞 0 评论 485 浏览 评分:0.0
沙子合并-区间动态规划(详细注释C++) 摘要:解题思路:1995年的经典题目,采用对区间进行动态规划的思想。每次合并的代价为两堆沙子数量之和,那么最后一次合并的代价就是所有沙子数量之和,当合成进行最后一次合并的两堆沙子所用的代价最小时,总代价最小…… 题解列表 2024年10月06日 0 点赞 0 评论 241 浏览 评分:9.9
1585:链表操作 摘要:```cpp #include using namespace std; typedef struct node { int shibu; int xubu; node* n…… 题解列表 2024年10月05日 0 点赞 0 评论 112 浏览 评分:0.0
1257: 超级楼梯(斐波那契递归)动态规划 摘要:```cpp #include using namespace std; int main() { int n; cin >> n; int m; while (n--…… 题解列表 2024年10月05日 0 点赞 0 评论 195 浏览 评分:0.0
1415:挚爱C语言(动态开辟二维数组空间C/C++解决问题) 摘要:c++语言动态开辟二维数组空间 ```cpp char** p = new char* [n]; for (int i = 0; i < n; i++) { p[i] = n…… 题解列表 2024年10月04日 0 点赞 0 评论 109 浏览 评分:9.9
蓝桥杯2024年第十五届省赛真题-成绩统计 摘要:**注意:** 本题的方差计算公式疑似有误。应为$$\sigma^2 = \frac{\sum (X-\mu)^2}{N}$$。其他的没什么好说的,这题就是模拟。 **代码:** ```cp…… 题解列表 2024年10月04日 9 点赞 0 评论 1550 浏览 评分:10.0
1644:最长字符串(使用结构体存储,扩展解法) 摘要:```cpp #include #include #include using namespace std; struct word { string w; in…… 题解列表 2024年10月04日 0 点赞 0 评论 121 浏览 评分:9.9