三个数字的排序(C++语言) 摘要:解题思路:输入a[1]至a[3],使用自带函数对输入数组进行排序注意事项:需要使用万能头文件参考代码:#include<bits/stdc++.h>//万能头文件using namespace std…… 题解列表 2022年04月27日 0 点赞 0 评论 538 浏览 评分:9.9
成绩评定(c++语言) 摘要:解题思路:根据题意if判断注意事项:if语句的应用;参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a…… 题解列表 2022年04月27日 0 点赞 0 评论 842 浏览 评分:8.0
求长方形面积 摘要:解题思路:首先,我们都知道长方形的周长和面积,周长:(a+b)*2,面积:a*b。注意事项:c:和S:要双引号参考代码:#include<iostream>using namespace std;in…… 题解列表 2022年04月27日 0 点赞 1 评论 973 浏览 评分:8.7
1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:题目让输入3个数,输出第2个输入的数注意事项:不是输出第2大的数参考代码:#include<iostream>using namespace std;int main(){ int a…… 题解列表 2022年04月27日 0 点赞 0 评论 1126 浏览 评分:6.0
利用C++ 集合set特性解题 摘要:``` #include #include #include using namespace std; int M,N; int a[3]; set T; int main(){ …… 题解列表 2022年04月27日 0 点赞 0 评论 583 浏览 评分:9.9
编写题解 1487: 蓝桥杯算法提高VIP-不同单词个数统计 摘要:解题思路:利用STL中set的特性,(不允许插入相同的内容)直接输出set的大小即可记录单词的个数注意事项:参考代码:#include #include using namespace std; …… 题解列表 2022年04月27日 0 点赞 0 评论 665 浏览 评分:0.0
编写题解 1484: 蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> #include<iomanip> using namespace std; int …… 题解列表 2022年04月27日 0 点赞 0 评论 408 浏览 评分:0.0
C++求偶数和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define N 1000int main(){ int n,a[N],sum=0,i; c…… 题解列表 2022年04月26日 0 点赞 0 评论 862 浏览 评分:4.7
1000: [竞赛入门]简单的a+b 摘要:解题思路:这道题就是求几个加法等式的a+b,可以结合while循环输出就行注意事项:注意要用while循环来算参考代码:#include<iostream>//头文件using namespace s…… 题解列表 2022年04月26日 0 点赞 1 评论 1365 浏览 评分:9.9
1002 三个数最大值 摘要:解题思路:这道题比较简单,就是求三个数中的最大数,比如有三个数1 2 3,2>1 并且 3>2,那么这三个数的最大数就是3注意事项:如果用函数或排序做,可以用万能头文件(#include<bits/s…… 题解列表 2022年04月26日 0 点赞 0 评论 479 浏览 评分:8.8