题解 1095: The 3n + 1 problem 关于超时 摘要:注意事项:关于超时,while(a!=1)我写成while(a>=1)就超时了,不太明白参考代码:#include<iostream> #include<string> using namespa…… 题解列表 2022年05月20日 0 点赞 0 评论 280 浏览 评分:0.0
[编程入门]数字的处理与判断-两个for循环 摘要:解题思路:构造一个求位数的函数,得到位数,利用求余,除法求出倒数等注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>i…… 题解列表 2022年05月20日 0 点赞 0 评论 342 浏览 评分:0.0
[编程入门]阶乘求和——循环次数最少 摘要:解题思路:另取一数值计算i的阶乘 每次相加注意事项:可能超出范围 要用longlong参考代码:#include<iostream>using namespace std;int main(){ …… 题解列表 2022年05月20日 0 点赞 0 评论 283 浏览 评分:0.0
编写题解 1008: [编程入门]成绩评定 摘要:解题思路:分支语句注意事项:注意每一个的相对应的范围。参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>=90) …… 题解列表 2022年05月20日 0 点赞 0 评论 522 浏览 评分:9.0
综合测验1【编程入门】Sn的公式求和 摘要:解题思路:先定义函数,然后利用while语句,再采用for循环完成语句注意事项:注意for的嵌套位置参考代码:#include<stdio.h>#include<math.h> int main(){…… 题解列表 2022年05月20日 0 点赞 0 评论 408 浏览 评分:9.9
编写题解 1584: 蓝桥杯算法训练VIP-判定字符位置 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { string st…… 题解列表 2022年05月20日 0 点赞 0 评论 275 浏览 评分:0.0
编写题解 1584: 蓝桥杯算法训练VIP-判定字符位置(2) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str1="aeiou"; …… 题解列表 2022年05月20日 0 点赞 0 评论 290 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n; int a[21…… 题解列表 2022年05月20日 0 点赞 0 评论 325 浏览 评分:0.0
编写题解 1584: 蓝桥杯算法训练VIP-判定字符位置(迭代器3) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str1="aeiou"; …… 题解列表 2022年05月20日 0 点赞 0 评论 261 浏览 评分:9.9
编写题解 1586: 蓝桥杯算法训练VIP-A+B problem 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b;…… 题解列表 2022年05月20日 0 点赞 0 评论 199 浏览 评分:0.0