编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double m,n,h=0.0,l,s; cin>>m>…… 题解列表 2021年12月02日 0 点赞 0 评论 225 浏览 评分:0.0
链表合并(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id; int score; student *nex…… 题解列表 2021年12月01日 0 点赞 0 评论 510 浏览 评分:9.9
结构体之成绩记录(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ char id[20]; char name[20]; int…… 题解列表 2021年12月01日 0 点赞 0 评论 498 浏览 评分:9.9
伪冒泡排序(依次比较) 摘要:解题思路:类似冒泡排序。依次比较相邻的两个数a,b,将更大的数赋给b,再比较b和c,直到末位注意事项:减少了if else语句的使用。与冒泡排序区别在于只求最大值,不管比较中更小的那个数。参考代码:#…… 题解列表 2021年12月01日 0 点赞 0 评论 512 浏览 评分:0.0
2244: 蓝桥杯算法训练-C++ CH08 01(c++代码实现) 摘要:解题思路:注意事项:应该考虑负数情况参考代码:#include<iostream>using namespace std;class zrf_Ratio{public: friend std::ost…… 题解列表 2021年11月30日 0 点赞 0 评论 718 浏览 评分:9.4
就几行代码 摘要:解题思路:每次输入新串和之前的最长串比较,如果比之前的串长则替换进a中,直到所有串输入完毕,然后将a中最长串输出就行。注意事项:参考代码:#include<iostream>using namespa…… 题解列表 2021年11月30日 0 点赞 0 评论 295 浏览 评分:0.0
c++ map入门笔记 摘要:解题思路:map其中一个是键的类型第二个是值得类型first或second用法,这是因为map中的每个元素都对应一组键值对中的第一个成员称为first,第二个成员称为second.注意事项:如果是in…… 题解列表 2021年11月30日 0 点赞 0 评论 814 浏览 评分:8.7
蓝桥杯算法提高VIP-勾股数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstdio> #include<cmath> using nam…… 题解列表 2021年11月29日 0 点赞 0 评论 229 浏览 评分:0.0
c++计算圆周率代码 摘要:解题思路:利用迭代法计算圆周率注意事项:注意精度参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { dou…… 题解列表 2021年11月28日 0 点赞 0 评论 1658 浏览 评分:7.4
剪刀石头布 摘要:解题思路:利用if进行枚举,其余情况输出0注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; …… 题解列表 2021年11月28日 0 点赞 0 评论 566 浏览 评分:4.0