自定义函数求一元二次方程,非常简单的做法 摘要:参考代码:#include<iostream> #include<math.h>using namespace std;int main(){ double a,b,c; double x1,x2,x…… 题解列表 2024年03月18日 0 点赞 0 评论 603 浏览 评分:0.0
1226题解——贪心 摘要:解题思路:分奇偶两种情况考虑。注意事项:参考代码:#include <stdio.h> #include <iostream> using namespace std; int gc…… 题解列表 2024年03月17日 0 点赞 0 评论 492 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-飞机降落 摘要:#include <bits/stdc++.h> using namespace std; // 该题,因为数据范围很小,所以可以 把所有的排列情况列出来 // 然后 每列出 一个飞机,…… 题解列表 2024年03月17日 4 点赞 4 评论 2725 浏览 评分:10.0
还是畅通工程 摘要:解题思路:最小生成树模版题注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[1000]; struct node { …… 题解列表 2024年03月17日 0 点赞 0 评论 455 浏览 评分:9.9
1350: 分糖果-c++直接上模板 摘要:解题思路:传递糖果的方式是广搜,先定义一个node结构体struct node { int num;//节点编号 int step;//访问步数 };然后直接上广搜模板void…… 题解列表 2024年03月17日 0 点赞 0 评论 521 浏览 评分:8.0
继续畅通工程 摘要:解题思路:最小生成树,如果道路是好的就提前连上且不用成本注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[1000]; s…… 题解列表 2024年03月17日 0 点赞 0 评论 388 浏览 评分:0.0
数据结构-集合union(基础) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef struct List{ int L[200]; int leng…… 题解列表 2024年03月17日 1 点赞 0 评论 589 浏览 评分:10.0
C++两个函数求阶乘和x的平方,并通过主函数调用; 摘要:解题思路:注意事项:注意返回值为double类型参考代码:#include<iostream>#include<math.h>#include<iomanip>using namespace std;…… 题解列表 2024年03月17日 0 点赞 0 评论 461 浏览 评分:0.0
2118: 信息学奥赛一本通T1179-奖学金 c++ 摘要:解题思路:注意题目没说有5个人,所以输出时有5个输出5个,没有输出n个参考代码:#include <bits/stdc++.h> using namespace std; struct stu …… 题解列表 2024年03月17日 1 点赞 0 评论 547 浏览 评分:6.4