最小生成树prim算法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstring>using namespace std;const int N…… 题解列表 2023年10月16日 0 点赞 0 评论 437 浏览 评分:0.0
1977: 求中间数---三目运算符 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月16日 0 点赞 0 评论 487 浏览 评分:0.0
1970: 巨大的数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月16日 0 点赞 0 评论 272 浏览 评分:0.0
1955: 贷款计算 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月16日 0 点赞 0 评论 498 浏览 评分:0.0
c++递归法解法 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int f(int x){ if(x==1||x==2) …… 题解列表 2023年10月16日 0 点赞 0 评论 291 浏览 评分:0.0
c++字符串的简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int main(){ string str; getli…… 题解列表 2023年10月16日 0 点赞 0 评论 209 浏览 评分:0.0
c++主函数单个循环避免超时 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int f(int x){ int sum=0; for(…… 题解列表 2023年10月16日 0 点赞 0 评论 300 浏览 评分:0.0
c++循环解法 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int main(){ int n=0,sum=0,s=0…… 题解列表 2023年10月16日 0 点赞 0 评论 302 浏览 评分:0.0
10行搞定(c++代码)超易懂 摘要:解题思路:列举样例的情况不难发现,靠左边的树苗离右边的长度决定了它的最高度,同理,靠右的树苗离左边界的距离决定了它的高度,这样看来这个题目就简单多了 第一天 …… 题解列表 2023年10月15日 0 点赞 0 评论 341 浏览 评分:2.0
C语言训练-数字母 摘要:**思路:** 如果参数是字母,`isalpha`函数返回true。 `isalpha`函数原型在`cctype`中。 `'\0'`是字符串的结尾 **代码:** ```c++ #incl…… 题解列表 2023年10月15日 0 点赞 0 评论 244 浏览 评分:0.0