题解列表
C++结构体链表合并常规解法
摘要:解题思路:创建链表,合并链表,排序,输出注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id, sum; stu……
最小新整数,删去山峰数
摘要:解题思路:只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个s……
Kruskal 求最小生成树+ 并查集
摘要:解题思路: 看不加码头能不能构成最小生成树,如果不可以,则答案为加上码头和建路的最小生成树, ,,,如果可以,则在不加码头和 加上码头的最小生成树取最小值注意事项:建议把初始化码头和把码头的边加……
C语言训练-阶乘和数*
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<math.h>using namespace std;int main(){ for(int i=……
2009: 第一个带类的C++程序
摘要:```cpp
#include
using namespace std;
class Clock {
public:
int Set() {
cin >> year >> mo……
斐波那契数列(c++)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[1001];int main(){ int n; cin>>……
c++利用指针循环计数(超级简单,全是c++基础语法)
摘要:解题思路:注意事项:参考代码:#includeusing namespace std;void fund(int a[], int n);int main() { int n; cin >> n; i……