1979: 求平均工资 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int n;…… 题解列表 2023年10月17日 1 点赞 0 评论 214 浏览 评分:10.0
1978: 分类计算 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int a,b…… 题解列表 2023年10月17日 0 点赞 0 评论 236 浏览 评分:0.0
1099: 校门外的树(C++) 摘要:解题思路:先对区间的起始点进行顺序排序,方便直接讨论区间终点的大小情况,根据情况对重复的区间进行去除,对衔接的区间进行拼接另外有先对整段区间赋值,再根据区间改变赋值,简化区间情况讨论的作法。参考代码:…… 题解列表 2023年10月17日 0 点赞 0 评论 238 浏览 评分:9.9
偶数求和的直观思路 摘要:解题思路:1.先假设n正好是m的整数倍,即正好可以求出(n/m)个平均值;2. 如果有剩下的数,最后再将剩下的数相加然后求平均数;注意事项:注意格式,注意设置一个变量来存放平均数加到哪了;参考代码:#…… 题解列表 2023年10月16日 0 点赞 0 评论 214 浏览 评分:9.9
最小生成树prim算法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstring>using namespace std;const int N…… 题解列表 2023年10月16日 0 点赞 0 评论 329 浏览 评分:0.0
1977: 求中间数---三目运算符 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月16日 0 点赞 0 评论 347 浏览 评分:0.0
1970: 巨大的数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月16日 0 点赞 0 评论 201 浏览 评分:0.0
1955: 贷款计算 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月16日 0 点赞 0 评论 323 浏览 评分:0.0
c++递归法解法 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int f(int x){ if(x==1||x==2) …… 题解列表 2023年10月16日 0 点赞 0 评论 228 浏览 评分:0.0
c++字符串的简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int main(){ string str; getli…… 题解列表 2023年10月16日 0 点赞 0 评论 156 浏览 评分:0.0