蓝桥杯算法提高VIP-前10名 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n; int a[21…… 题解列表 2022年05月20日 0 点赞 0 评论 341 浏览 评分:0.0
编写题解 1584: 蓝桥杯算法训练VIP-判定字符位置(2) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str1="aeiou"; …… 题解列表 2022年05月20日 0 点赞 0 评论 328 浏览 评分:0.0
编写题解 1584: 蓝桥杯算法训练VIP-判定字符位置 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { string st…… 题解列表 2022年05月20日 0 点赞 0 评论 321 浏览 评分:0.0
综合测验1【编程入门】Sn的公式求和 摘要:解题思路:先定义函数,然后利用while语句,再采用for循环完成语句注意事项:注意for的嵌套位置参考代码:#include<stdio.h>#include<math.h> int main(){…… 题解列表 2022年05月20日 0 点赞 0 评论 434 浏览 评分:9.9
编写题解 1008: [编程入门]成绩评定 摘要:解题思路:分支语句注意事项:注意每一个的相对应的范围。参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>=90) …… 题解列表 2022年05月20日 0 点赞 0 评论 548 浏览 评分:9.0
[编程入门]阶乘求和——循环次数最少 摘要:解题思路:另取一数值计算i的阶乘 每次相加注意事项:可能超出范围 要用longlong参考代码:#include<iostream>using namespace std;int main(){ …… 题解列表 2022年05月20日 0 点赞 0 评论 307 浏览 评分:0.0
[编程入门]数字的处理与判断-两个for循环 摘要:解题思路:构造一个求位数的函数,得到位数,利用求余,除法求出倒数等注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>i…… 题解列表 2022年05月20日 0 点赞 0 评论 359 浏览 评分:0.0
题解 1095: The 3n + 1 problem 关于超时 摘要:注意事项:关于超时,while(a!=1)我写成while(a>=1)就超时了,不太明白参考代码:#include<iostream> #include<string> using namespa…… 题解列表 2022年05月20日 0 点赞 0 评论 298 浏览 评分:0.0
二级C语言-计负均正 摘要:解题思路先求出正负数的个数,再求出所有正整数的值的和,最后按照平均数的求法算出答案。注意事项1、计算平均数的变量和统计总个数的变量要使用double型,否则只会整除;2、别忘了两个量输出间隔时的回车。…… 题解列表 2022年05月20日 0 点赞 0 评论 549 浏览 评分:9.9
1102: 明明的随机数 摘要:解题思路:去重:数组的去重是很难直接把重复值“删去”的,此题要求输入的随机数都是正整数,所以可以把重复值全改成0,最后输出非0数,就算去重了。先排序,后去重。排序使用快速排序。注意事项:快速排序函数中…… 题解列表 2022年05月20日 0 点赞 0 评论 400 浏览 评分:9.9