优质题解 1094: 字符串的输入输出处理 摘要:解题思路:(1)带空格的要用 cin.getline() 接收输入,接收完就输出。(2)不带空格的直接用 cin 接收输入,接受完就输出。注意事项:输入完 N 后要用 getchar() 接收后面紧跟…… 题解列表 2022年04月27日 1 点赞 1 评论 3655 浏览 评分:9.9
陶陶摘苹果(C++简单题解) 摘要:解题思路:用淘淘的身高加上板凳的高度,就是淘淘能够到的高度,再和苹果的高度进行判断累加,最后输出;注意事项:加上板凳的30;参考代码: #includeusing namespace std;int …… 题解列表 2022年04月27日 0 点赞 0 评论 1506 浏览 评分:7.3
三个数字的排序(C++语言) 摘要:解题思路:输入a[1]至a[3],使用自带函数对输入数组进行排序注意事项:需要使用万能头文件参考代码:#include<bits/stdc++.h>//万能头文件using namespace std…… 题解列表 2022年04月27日 0 点赞 0 评论 400 浏览 评分:9.9
成绩评定(c++语言) 摘要:解题思路:根据题意if判断注意事项:if语句的应用;参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a…… 题解列表 2022年04月27日 0 点赞 0 评论 680 浏览 评分:8.0
求长方形面积 摘要:解题思路:首先,我们都知道长方形的周长和面积,周长:(a+b)*2,面积:a*b。注意事项:c:和S:要双引号参考代码:#include<iostream>using namespace std;in…… 题解列表 2022年04月27日 0 点赞 1 评论 827 浏览 评分:8.7
1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:题目让输入3个数,输出第2个输入的数注意事项:不是输出第2大的数参考代码:#include<iostream>using namespace std;int main(){ int a…… 题解列表 2022年04月27日 0 点赞 0 评论 957 浏览 评分: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 评论 380 浏览 评分:9.9
编写题解 1487: 蓝桥杯算法提高VIP-不同单词个数统计 摘要:解题思路:利用STL中set的特性,(不允许插入相同的内容)直接输出set的大小即可记录单词的个数注意事项:参考代码:#include #include using namespace std;…… 题解列表 2022年04月27日 0 点赞 0 评论 537 浏览 评分:0.0
编写题解 1484: 蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> #include<iomanip> using namespace std; int …… 题解列表 2022年04月27日 0 点赞 0 评论 189 浏览 评分: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 评论 670 浏览 评分:4.7