蓝桥杯算法提高VIP-输出正反三角形------思路很强大 摘要:解题思路: 都在代码里了注意事项: 一定要看清楚前面还有几个空格!!参考代码:#include<iostream>using namespace std;int main(void){ i…… 题解列表 2021年12月17日 0 点赞 0 评论 538 浏览 评分:0.0
1129: C语言训练-排序问题<2> 摘要:降序排序,只需要给 sort 函数加第三个参数。#include<bits/stdc++.h> using namespace std; bool cmp(int a,int b){ …… 题解列表 2021年12月17日 0 点赞 0 评论 511 浏览 评分:0.0
1128: C语言训练-排序问题<1> 摘要:现成的 sort() 函数往上拍就完事儿了。#include<bits/stdc++.h> using namespace std; int main(){ vector<int>…… 题解列表 2021年12月17日 0 点赞 0 评论 307 浏览 评分:0.0
1114: C语言考试练习题_排列 摘要:无脑打印,没想到什么更好的解决办法。(文章先收藏了以后看看)#include<bits/stdc++.h> using namespace std; int main(){ vec…… 题解列表 2021年12月17日 0 点赞 0 评论 457 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:#include<bits/stdc++.h> using namespace std; int main(){ enum game {shitou = 0,bu = 1,jian…… 题解列表 2021年12月17日 0 点赞 0 评论 426 浏览 评分:0.0
1505: 蓝桥杯算法提高VIP-单词个数统计 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); …… 题解列表 2021年12月17日 0 点赞 0 评论 347 浏览 评分:0.0
使用递归解决这道题目 摘要:解题思路:使用递归解决这道题 非常easy注意事项:理解递归参考代码:#include<iostream>#include<string>using namespace std;string f(i…… 题解列表 2021年12月17日 0 点赞 0 评论 441 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin >> a >> b…… 题解列表 2021年12月17日 0 点赞 0 评论 524 浏览 评分:0.0
阶乘类型-扎实你的基础 摘要:解题思路:定义double类型,然后利用for循环来对输入的值进行累加;再新函数用递归计算阶乘并且求和;注意事项:double类型,定义函数以及变量都得是double类型,一致,其次输出保留五位小数。…… 题解列表 2021年12月17日 0 点赞 0 评论 575 浏览 评分:9.9
多个循环使用,一些细节处理 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,a,b,c,j=0,k=0; float sum,m=0…… 题解列表 2021年12月17日 0 点赞 0 评论 492 浏览 评分:9.9