简单计算,解方程法,设a[1]为x 摘要:#include<iostream>#include<iomanip>using namespace std;class myitem{public: double item_x; double it…… 题解列表 2022年11月26日 0 点赞 0 评论 357 浏览 评分:0.0
C++三目超简 摘要:解题思路:如果年份整除于4但不整除于100则为普通闰年,如果年份整除于400则为世纪闰年.我们可以通过三目运算符来进行判断。注意事项:注意格式规范参考代码:#include <iostream>#de…… 题解列表 2022年11月26日 0 点赞 0 评论 537 浏览 评分:7.3
超简单的C++ 摘要:参考代码:#include<iostream> using namespace std; void shu(int n){ if(n==1){ cout<<'A…… 题解列表 2022年11月25日 0 点赞 0 评论 234 浏览 评分:9.9
C++结构体链表合并常规解法 摘要:解题思路:创建链表,合并链表,排序,输出注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id, sum; stu…… 题解列表 2022年11月25日 0 点赞 0 评论 338 浏览 评分:0.0
最小新整数,删去山峰数 摘要:解题思路:只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个s…… 题解列表 2022年11月25日 0 点赞 0 评论 396 浏览 评分:0.0
Kruskal 求最小生成树+ 并查集 摘要:解题思路: 看不加码头能不能构成最小生成树,如果不可以,则答案为加上码头和建路的最小生成树, ,,,如果可以,则在不加码头和 加上码头的最小生成树取最小值注意事项:建议把初始化码头和把码头的边加…… 题解列表 2022年11月25日 0 点赞 0 评论 394 浏览 评分:9.9
超简单的C++ 摘要:参考代码:#include<iostream> using namespace std; int main() { long long int sum; long long …… 题解列表 2022年11月24日 0 点赞 0 评论 391 浏览 评分:9.9
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<math.h>using namespace std;int main(){ for(int i=…… 题解列表 2022年11月24日 0 点赞 0 评论 308 浏览 评分:0.0
2009: 第一个带类的C++程序 摘要:```cpp #include using namespace std; class Clock { public: int Set() { cin >> year >> mo…… 题解列表 2022年11月23日 0 点赞 0 评论 387 浏览 评分:9.9
二分+并查集 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>/*其实这一题自己最大的收获是数学等价,来回跳2x次等价于单向跳2x次,证明:假设可以来回跳2x次,那么按回来的跳的石头正着…… 题解列表 2022年11月23日 0 点赞 0 评论 1219 浏览 评分:9.9