题解 1909: 蓝桥杯算法提高VIP-拿糖果-python 摘要:解题思路:动态规划注意事项:注意超时!参考代码:import mathdef zys(n,zs): #计算质因数 res =[] d = math.sqrt(n) for i in…… 题解列表 2022年06月16日 0 点赞 0 评论 472 浏览 评分:9.9
自定义函数之字符串反转 摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){char ch[100],*p; int i;fgets…… 题解列表 2022年06月16日 0 点赞 0 评论 380 浏览 评分:0.0
时间复杂度很低 摘要:解题思路:先转换成从0到y-x,这样固定了从13加15*n的数,然后计数x,求和输出。注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run thi…… 题解列表 2022年06月16日 0 点赞 0 评论 432 浏览 评分:9.9
编写题解 1018: [编程入门]有规律的数列求和-递归 摘要:解题思路:注意事项:参考代码:n=int(input())f1=1f2=2s=f2/f1for i in range(2,n+1): f1,f2=f2,f1+f2 s=s+f2/f1pri…… 题解列表 2022年06月16日 0 点赞 0 评论 504 浏览 评分:0.0
简单便于理解的逻辑——C语言 摘要:解题思路: 申请一个字符数组,之后用gets接收输入的字符; 撰写函数时输入指针会方便很多,然后写一个循环,不必 题解列表 2022年06月17日 0 点赞 0 评论 361 浏览 评分:0.0
[编程入门]实数的打印 摘要:思路:暴力解法,直接输出,输出格式不用管,6.2f意为:数字整体长度包括小数点为 6 位,保留 2 位小数,不足则以空格补齐,对齐方式为右对齐。当实际长度大于格式定义的位数时,如 12345678.1…… 题解列表 2022年06月17日 0 点赞 0 评论 447 浏览 评分:0.0
信息学奥赛一本通T1321-删数问题 摘要:#include<iostream>#include<string>using namespace std;int main(){ string str; cin>>str; int…… 题解列表 2022年06月17日 0 点赞 0 评论 637 浏览 评分:5.8
计算2的n次方 摘要:解题思路:只是随手一做,有很多不好的地方,请谅解注意事项:注意时间复杂度参考代码:#include<stdio.h>#include<iostream>using namespace std;int …… 题解列表 2022年06月17日 0 点赞 0 评论 439 浏览 评分:0.0
题解 2657: 蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:参考代码:#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; for (in…… 题解列表 2022年06月17日 0 点赞 0 评论 836 浏览 评分:9.9
蓝桥杯2018年第九届真题-交换次数 摘要:#### 暴力 ``` #include #include #include #include using namespace std; const int N = 10010; …… 题解列表 2022年06月17日 0 点赞 0 评论 501 浏览 评分:0.0