Hifipsysta-1229-最小公倍数(C++代码)辗转相除法 摘要:```cpp #include using namespace std; long long GCD(long long a, long long b){ if(b==0){ …… 题解列表 2022年02月11日 0 点赞 0 评论 494 浏览 评分:0.0
核电站问题 (Java代码) 摘要:import java.math.BigInteger; import java.util.Scanner; public class Main { public static voi…… 题解列表 2022年02月11日 0 点赞 0 评论 682 浏览 评分:0.0
蓝桥杯算法提高VIP-勾股数(c语言)--两种解法 摘要:解题思路:解法一:直接暴力循环,遍历每一个满足a,b,c的值,时间复杂度(n3)解法二:在解法一的基础上进行了优化,根据a<b<c,可以得出1<a<333,a<=b<500,时间复杂度(n2),相比起…… 题解列表 2022年02月11日 0 点赞 0 评论 729 浏览 评分:9.9
Hifipsysta-2080-蓝桥杯基础练习-十六进制转八进制(C++代码) 摘要:```cpp #include #include #include #include using namespace std; long long M2Ten(string mystr…… 题解列表 2022年02月11日 0 点赞 0 评论 409 浏览 评分:0.0
龟兔赛跑预测 摘要:解题思路:首先输出v1,v2,t,s,l。s1表示兔子赛跑时间,l1表示兔子跑的距离;s2表示乌龟赛跑时间,l2表示乌龟跑的距离。我们要从第一秒开始比较。兔子和乌龟有一方到达终点比赛就会结束。考虑到兔…… 题解列表 2022年02月11日 0 点赞 0 评论 572 浏览 评分:9.9
Hifipsysta-2082-蓝桥杯基础练习-十六进制转十进制(C++代码) 摘要:```cpp #include #include #include using namespace std; int M2Ten(string mystr, int M){ i…… 题解列表 2022年02月11日 0 点赞 0 评论 751 浏览 评分:0.0
python-砝码称重 摘要:解题思路:参考博客https://blog.csdn.net/qq_52441682/article/details/122634449?spm=1001.2101.3001.6650.1&utm_m…… 题解列表 2022年02月11日 0 点赞 3 评论 1711 浏览 评分:9.8
Hifipsysta-1934-蓝桥杯算法提高VIP-十进制数转八进制数(C++代码) 摘要:```cpp #include #include #include using namespace std; vector Ten2N(int num, int N){ vec…… 题解列表 2022年02月11日 0 点赞 0 评论 427 浏览 评分:0.0
Hifipsysta-1680-数据结构-八进制数(C++代码) 摘要:```cpp #include #include #include using namespace std; void Ten2N(int num, int N){ vecto…… 题解列表 2022年02月11日 0 点赞 0 评论 560 浏览 评分:9.9
分组背包 python 摘要:解题思路:动态规划,01背包衍生题型,只需多一个循环来遍历决策即可。注意事项:注意背包体积要大于物品体积才能将物品放入参考代码:c, n, t = map(int, input().split())d…… 题解列表 2022年02月11日 0 点赞 0 评论 524 浏览 评分:9.9