2311: 蓝桥杯2019年第十届省赛真题-Fibonacci 数列与黄金分割 摘要:解题思路:参考大佬的分享,在N>19的时候,八位小数就重复了!注意事项:参考代码:#include<stdio.h>double F(int N){ if (N == 1) return 1.0; …… 题解列表 2022年04月06日 0 点赞 0 评论 605 浏览 评分:9.9
最新手的解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(void) { int a,q[10],i=0,j; scanf("%d",&a…… 题解列表 2022年04月06日 0 点赞 0 评论 467 浏览 评分:0.0
2609: 蓝桥杯2021年第十二届省赛真题-时间显示 摘要:解题思路:注意事项:参考代码:num=int(input()) t=num//1000 ss=t%60 mm=t%(60*60)//60 hh=t%(60*60*24)//(60*60) i…… 题解列表 2022年04月06日 0 点赞 0 评论 469 浏览 评分:0.0
【鼠鼠】通俗易懂解小学奥数 摘要:**核心思路** 减半的次数和n是相等的 最开始的高度只跑了一次 ```cpp #include #include using namespace std; int main(…… 题解列表 2022年04月06日 0 点赞 0 评论 521 浏览 评分:0.0
1行代码直接ac 摘要:解题思路:注意事项:参考代码 : while True: print(sum([int(i) for i in input()]))…… 题解列表 2022年04月06日 0 点赞 0 评论 453 浏览 评分:0.0
01背包思想辅助解题--java 摘要:解题思路:(先要自己弄清楚装箱问题)首先,要明确这道题中,砝码有两种放法,一种是同侧一种是异侧放法.同侧也就是在求和,异侧就是在求差.在同侧求和时,我采用装箱问题的解决思路(因为数据多时,排列情况太多…… 题解列表 2022年04月06日 0 点赞 0 评论 792 浏览 评分:9.9
c语言,动态规划求解 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> #include<stdlib.h> int max(int x,int y) { …… 题解列表 2022年04月06日 1 点赞 0 评论 617 浏览 评分:7.3
python-摆花摆花 摘要:解题思路:注意事项:参考代码:def f(n,m): num = [0] + [int(i) for i in input().strip().split()] dp = …… 题解列表 2022年04月06日 0 点赞 0 评论 544 浏览 评分:9.9
复杂度O(n)版题解 摘要:解题思路:主要利用前缀和思想,一部分值要减掉,一部分值要加上。注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int m[27][3];//…… 题解列表 2022年04月06日 0 点赞 0 评论 766 浏览 评分:9.9
最简单(自定义函数之字符串反转) 摘要:解题思路:注意事项:参考代码:错误思路:对字符串进行降序正确思路:对字符串进行逆序操作def person(n): print(n[::-1]) n=input() person(n)…… 题解列表 2022年04月06日 0 点赞 0 评论 626 浏览 评分:9.9