蓝桥杯算法提高VIP-勾股数python暴力求解 摘要: for i in range(1,998): for j in range(i+1,998): c = pow((i**2+…… 题解列表 2022年03月14日 0 点赞 0 评论 406 浏览 评分:8.0
2610: 蓝桥杯2021年第十二届省赛真题-杨辉三角形 摘要:解题思路:参考 https://blog.csdn.net/zy98zy998/article/details/122293334注意事项:参考代码:#include<iostream> using…… 题解列表 2022年03月14日 0 点赞 1 评论 3116 浏览 评分:8.0
1121题解python for循环 摘要:解题思路:不停地嵌套就行了注意事项:参考代码:for i in range(10000): if i%8==1: if (i//8)%8==1: if ((i…… 题解列表 2022年03月14日 0 点赞 0 评论 539 浏览 评分:8.0
单词分析(C代码) 摘要: #include #include char str[1010]; //建立count数组统计26个字母出现个数 int count[26]; …… 题解列表 2022年03月14日 0 点赞 0 评论 827 浏览 评分:8.0
一种容易理解的方法 摘要:解题思路:注意事项:参考代码:注意逻辑#include<stdio.h>int main(){ int a,b,c; scanf("%d""%d""%d",&a,&b,&c); if…… 题解列表 2022年03月14日 0 点赞 0 评论 804 浏览 评分:8.0
大家不要以为我在装X,但是真的很简单 摘要:解题思路:直接用 import math 就好了注意事项:无参考代码:import mathprint(math.factorial(1977))…… 题解列表 2022年03月16日 0 点赞 1 评论 388 浏览 评分:8.0
动态规划!!! 摘要:```cpp // f[i][j] = f[i - 1][j] + f[i][j - i] #include using namespace std; const int N = 1…… 题解列表 2022年03月16日 0 点赞 0 评论 540 浏览 评分:8.0
饮料换购python 摘要:解题思路:蓝桥杯2015年第六届真题-饮料换购 - C语言网 (dotcpp.com)注意事项:参考代码:n = int(input())ans = 0while n>2: mod = n % …… 题解列表 2022年03月17日 0 点赞 0 评论 696 浏览 评分:8.0
那个顺序放在后面还要好好理解一下 摘要:解题思路:也是看了题解注意事项:写在代码里面了参考代码:#include<stdio.h>int main(){ float m,n,sum=0,i=0,t; scanf("%f %f",&m,&n)…… 题解列表 2022年03月18日 0 点赞 0 评论 340 浏览 评分:8.0
题解 2302: 蓝桥杯2019年第十届省赛真题-糖果-状态压缩dp思想 摘要:解题思路:状态压缩将每种状态用二进制的形式表示例如第一包糖果:1 1 2可以表示为:00011表示第一种和第二种口味都有而11111表示五种口味都有dp[j]:表示当j状态的时,最少需要几包糖果构成状…… 题解列表 2022年03月19日 0 点赞 0 评论 991 浏览 评分:8.0