题解 1095: The 3n + 1 problem 关于超时 摘要:注意事项:关于超时,while(a!=1)我写成while(a>=1)就超时了,不太明白参考代码:#include<iostream> #include<string> using namespa…… 题解列表 2022年05月20日 0 点赞 0 评论 278 浏览 评分:0.0
[编程入门]数字的处理与判断-两个for循环 摘要:解题思路:构造一个求位数的函数,得到位数,利用求余,除法求出倒数等注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>i…… 题解列表 2022年05月20日 0 点赞 0 评论 336 浏览 评分:0.0
[编程入门]阶乘求和——循环次数最少 摘要:解题思路:另取一数值计算i的阶乘 每次相加注意事项:可能超出范围 要用longlong参考代码:#include<iostream>using namespace std;int main(){ …… 题解列表 2022年05月20日 0 点赞 0 评论 278 浏览 评分:0.0
编写题解 1584: 蓝桥杯算法训练VIP-判定字符位置 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { string st…… 题解列表 2022年05月20日 0 点赞 0 评论 270 浏览 评分:0.0
编写题解 1584: 蓝桥杯算法训练VIP-判定字符位置(2) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str1="aeiou"; …… 题解列表 2022年05月20日 0 点赞 0 评论 280 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n; int a[21…… 题解列表 2022年05月20日 0 点赞 0 评论 318 浏览 评分:0.0
编写题解 1586: 蓝桥杯算法训练VIP-A+B problem 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b;…… 题解列表 2022年05月20日 0 点赞 0 评论 197 浏览 评分:0.0
编写题解 1597: 蓝桥杯算法训练VIP-提货单 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<iomanip> using namespace std; struct…… 题解列表 2022年05月20日 0 点赞 0 评论 269 浏览 评分:0.0
二级C语言-等差数列 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;int n,t=2,s…… 题解列表 2022年05月20日 0 点赞 0 评论 297 浏览 评分:0.0
[编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[15],s,t;int main(){ for(int i=…… 题解列表 2022年05月20日 0 点赞 0 评论 271 浏览 评分:0.0