C++结构体链表合并常规解法 摘要:解题思路:创建链表,合并链表,排序,输出注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id, sum; stu…… 题解列表 2022年11月25日 0 点赞 0 评论 372 浏览 评分:0.0
最小新整数,删去山峰数 摘要:解题思路:只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个s…… 题解列表 2022年11月25日 0 点赞 0 评论 438 浏览 评分:0.0
Kruskal 求最小生成树+ 并查集 摘要:解题思路: 看不加码头能不能构成最小生成树,如果不可以,则答案为加上码头和建路的最小生成树, ,,,如果可以,则在不加码头和 加上码头的最小生成树取最小值注意事项:建议把初始化码头和把码头的边加…… 题解列表 2022年11月25日 0 点赞 0 评论 460 浏览 评分:9.9
超简单的C++ 摘要:参考代码:#include<iostream> using namespace std; int main() { long long int sum; long long …… 题解列表 2022年11月24日 0 点赞 0 评论 450 浏览 评分:9.9
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<math.h>using namespace std;int main(){ for(int i=…… 题解列表 2022年11月24日 0 点赞 0 评论 341 浏览 评分:0.0
2009: 第一个带类的C++程序 摘要:```cpp #include using namespace std; class Clock { public: int Set() { cin >> year >> mo…… 题解列表 2022年11月23日 0 点赞 0 评论 436 浏览 评分:9.9
二分+并查集 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>/*其实这一题自己最大的收获是数学等价,来回跳2x次等价于单向跳2x次,证明:假设可以来回跳2x次,那么按回来的跳的石头正着…… 题解列表 2022年11月23日 0 点赞 0 评论 1254 浏览 评分:9.9
斐波那契数列(c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[1001];int main(){ int n; cin>>…… 题解列表 2022年11月23日 0 点赞 0 评论 311 浏览 评分:9.9
c++利用指针循环计数(超级简单,全是c++基础语法) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;void fund(int a[], int n);int main() { int n; cin >> n; i…… 题解列表 2022年11月23日 0 点赞 0 评论 316 浏览 评分:9.9
超详细通俗易懂C++,暴力求解 摘要:参考代码:#include<iostream> using namespace std; int main() { // 输入 int N; cin>>N; …… 题解列表 2022年11月23日 0 点赞 1 评论 363 浏览 评分:9.9