编写题解 1562: 蓝桥杯算法提高VIP-计算时间 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <stdio.h> using namespace std; int main() { …… 题解列表 2022年05月02日 0 点赞 0 评论 428 浏览 评分:0.0
[编程入门]自定义函数处理素数 摘要:解题思路:直接判断是否为素数注意事项:sqrt!参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("…… 题解列表 2022年05月02日 0 点赞 0 评论 383 浏览 评分:0.0
公约公倍 题解 摘要:解题思路:这题就是求两个数的最大公约数和最小公倍数。我就直接用函数做!注意事项:在调用函数前别忘了加上“__”!参考代码:#include<bits/stdc++.h>using namespace …… 题解列表 2022年05月02日 0 点赞 0 评论 445 浏览 评分:0.0
温度转换 题解 摘要:解题思路:直接套公式!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double f;int main(){ scanf("%l…… 题解列表 2022年05月02日 0 点赞 0 评论 421 浏览 评分:0.0
猴子吃桃的问题 摘要:解题思路:求原来的桃子数,这题也就是逆推法。注意事项:s初始值为1。参考代码:#include<bits/stdc++.h>using namespace std;int n,s=1;int main…… 题解列表 2022年05月02日 0 点赞 0 评论 353 浏览 评分:0.0
C++ 最小绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a[10], i = 0, te…… 题解列表 2022年05月02日 0 点赞 0 评论 590 浏览 评分:0.0
利用递归函数来求阶乘 摘要:解题思路:先定义一个函数,用递归思想求一个数的阶乘,再用for循环求1~30的每个数的阶乘,最后注意%.2e表示科学计数法并且保留两位小数注意事项:参考代码:def func(x): if x=…… 题解列表 2022年05月02日 0 点赞 0 评论 601 浏览 评分:0.0
[编程入门]数组插入处理 摘要:解题思路:把新的插入变量带入兑换为其中一个比他大的量然后交换以此类推注意事项:参考代码:#include<stdio.h>int main(){ int s[9],i,t,x; for(i=0;i<9…… 题解列表 2022年05月03日 0 点赞 0 评论 343 浏览 评分:0.0
蓝桥杯算法提高VIP-队列操作 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;queue<int>q;int n,a,b;int main(){ cin>>…… 题解列表 2022年05月03日 0 点赞 0 评论 468 浏览 评分:0.0
快速排序练习 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 536 浏览 评分:0.0