1084: 用筛法求之N内的素数(c++版) 摘要:** 具体代码:** ```cpp #include using namespace std; int main() { int n; cin >> n; for (int i …… 题解列表 2022年02月09日 0 点赞 0 评论 275 浏览 评分:0.0
Hifipsysta-1585-蓝桥杯算法训练VIP-链表数据求和操作(C++代码)真链表数据域求和 摘要:```cpp #include using namespace std; const int MAXN = 100; struct node{ int real; in…… 题解列表 2022年02月09日 0 点赞 0 评论 365 浏览 评分:0.0
50行简单dfs-路径之谜 摘要:```cpp #include #include using namespace std; const int N=25; int n,a[N],b[N],vis[N][N]; int…… 题解列表 2022年02月09日 0 点赞 0 评论 582 浏览 评分:9.9
Hifipsysta-1052-[编程入门]链表合并(C++代码)循环链表的冒泡排序 摘要: ```cpp #include #include using namespace std; struct node{ int id; int score; …… 题解列表 2022年02月09日 0 点赞 0 评论 523 浏览 评分:0.0
优质题解 最大体积(动态规划补空隙C++) 摘要:1. - 分析问题 首先,由扩展欧几里得算法,可以得出若x,y为正整数a,b为整数,**则ax+by=1有解是x与y互质的充要条件。** 所以当给出的体积互质时(所有体积的最大公约数为1),一定有…… 题解列表 2022年02月09日 0 点赞 4 评论 761 浏览 评分:9.9
1083: Hello, world!(c++版) 摘要:** 解题思路:** 以数字形式输入,以字符形式输出即可 ** 具体代码** ```cpp #include using namespace std; int main() { …… 题解列表 2022年02月09日 0 点赞 2 评论 368 浏览 评分:8.0
保姆级题解,谁看了都说好 【 C++】 摘要:解题思路:这是一个非常简单的问题,我们只需要输入10个苹果的高度和陶陶的身高,然后逐个进行比较即可注意事项:记得算上凳子的高度参考代码:#include<iostream> using namesp…… 题解列表 2022年02月08日 0 点赞 0 评论 442 浏览 评分:7.3
【偶数求和】C++代码 摘要:解题思路:方法比较笨,仅供参考参考代码:#include<iostream> using namespace std; int main() { int n,m; while…… 题解列表 2022年02月08日 0 点赞 0 评论 347 浏览 评分:9.9
Hifipsysta-1697-数据结构-二叉链表存储的二叉树(C++代码) 摘要:```cpp #include #include #include using namespace std; struct node{ char data; node…… 题解列表 2022年02月08日 0 点赞 0 评论 498 浏览 评分:0.0
编辑距离(双序列动态规划 + 滚动数组优化) 摘要:```cpp #include #include #include #define MAX 2001 using namespace std; string A, B; int dp[M…… 题解列表 2022年02月08日 0 点赞 0 评论 692 浏览 评分:9.9