自己看.............. 摘要:#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <stdio.h>#include <cmath>#include <algori…… 题解列表 2021年12月04日 0 点赞 0 评论 762 浏览 评分:0.0
哥德巴赫曾猜测 摘要:解题思路:编写一个函数确认两个数是否非素数,并且利用循环得出次数注意事项:参考代码:#include<iostream>using namespace std;int fun(int );int ma…… 题解列表 2021年12月02日 0 点赞 0 评论 540 浏览 评分:8.0
编写题解 1574: 蓝桥杯算法提高VIP-选择排序 摘要:#include<iostream> using namespace std; int main() { int n,j,i,min,flag,x; cin>>n; …… 题解列表 2021年12月02日 0 点赞 0 评论 391 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double m,n,h=0.0,l,s; cin>>m>…… 题解列表 2021年12月02日 0 点赞 0 评论 385 浏览 评分:0.0
链表合并(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id; int score; student *nex…… 题解列表 2021年12月01日 0 点赞 0 评论 672 浏览 评分:9.9
结构体之成绩记录(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ char id[20]; char name[20]; int…… 题解列表 2021年12月01日 0 点赞 0 评论 645 浏览 评分:9.9
伪冒泡排序(依次比较) 摘要:解题思路:类似冒泡排序。依次比较相邻的两个数a,b,将更大的数赋给b,再比较b和c,直到末位注意事项:减少了if else语句的使用。与冒泡排序区别在于只求最大值,不管比较中更小的那个数。参考代码:#…… 题解列表 2021年12月01日 0 点赞 0 评论 689 浏览 评分:0.0
2244: 蓝桥杯算法训练-C++ CH08 01(c++代码实现) 摘要:解题思路:注意事项:应该考虑负数情况参考代码:#include<iostream>using namespace std;class zrf_Ratio{public: friend std::ost…… 题解列表 2021年11月30日 0 点赞 0 评论 856 浏览 评分:9.4
就几行代码 摘要:解题思路:每次输入新串和之前的最长串比较,如果比之前的串长则替换进a中,直到所有串输入完毕,然后将a中最长串输出就行。注意事项:参考代码:#include<iostream>using namespa…… 题解列表 2021年11月30日 0 点赞 0 评论 469 浏览 评分:0.0
c++ map入门笔记 摘要:解题思路:map其中一个是键的类型第二个是值得类型first或second用法,这是因为map中的每个元素都对应一组键值对中的第一个成员称为first,第二个成员称为second.注意事项:如果是in…… 题解列表 2021年11月30日 0 点赞 0 评论 987 浏览 评分:8.7