菜鸡的题解006——特别数的和 摘要:没啥可说的了,这题也能当提高题?参考代码:#include<iostream> #include<cstdio> #include<algorithm> #include<string> #i…… 题解列表 2021年04月15日 0 点赞 0 评论 480 浏览 评分:0.0
菜鸡的题解007——等差数列 摘要:gcd(最小公约数)要记住(我是菜鸡,差点把冒号前后写错了)思路:用sort排序,然后依次从大到小求相邻数的差值,然后求这些差值的最大公约数,就是最大的公差(一定要注意不存在最大公约数的情况,即存在两…… 题解列表 2021年04月15日 0 点赞 0 评论 798 浏览 评分:0.0
蓝桥杯历届试题-蚂蚁感冒 摘要:```python num = int(input()) ls = list(map(int,input().split())) a = ls[0] sum = len(ls) co…… 题解列表 2021年04月15日 0 点赞 0 评论 837 浏览 评分:0.0
直接查找(Python) 摘要:S={}n=int(input())while n>0: t=int(input()) if t in S: S[t]=S[t]+1 else: S[t]…… 题解列表 2021年04月15日 0 点赞 0 评论 637 浏览 评分:0.0
不是很好的方法(Python) 摘要:YMD=[0,31,28,31,30,31,30,31,31,30,31,30,31]def runnian(Y1): if Y1%100==0: return 1 else…… 题解列表 2021年04月15日 0 点赞 0 评论 440 浏览 评分:0.0
剪枝dfs C++写法 摘要:解题思路: 最优化剪枝, 记录到达美味度所需要的最小蛋糕数,如果搜索中 达到某一美味度的蛋糕数已经大于book[]数组中所记录的 那么不用再深搜了注意事项: 都在代码里参考代码:#include <b…… 题解列表 2021年04月15日 0 点赞 0 评论 838 浏览 评分:0.0
C++版本——常规思路 摘要: #include using namespace std; int main() { string a, b; cin >> …… 题解列表 2021年04月15日 0 点赞 0 评论 437 浏览 评分:0.0
蓝桥杯算法提高VIP-快速幂 摘要:### 快速幂做法 ```java import java.math.BigInteger; import java.util.Scanner; public class Mai…… 题解列表 2021年04月15日 0 点赞 0 评论 499 浏览 评分:0.0
C++版本——常规思路 摘要:```cpp #include using namespace std; char* timez[] = {"zero","one","two","three","four","five",…… 题解列表 2021年04月15日 0 点赞 0 评论 472 浏览 评分:0.0
求解输入的几位偶数和 摘要:解题思路:先来确定要输入几个数,再依次为每一个数赋值,最后判断是否为偶数,是偶数就相加。注意事项:数组是从a[0]开始,所以赋值时要先为i赋值为0参考代码:#include<stdio.h>int m…… 题解列表 2021年04月15日 0 点赞 0 评论 346 浏览 评分:0.0