蓝桥杯算法提高VIP-勾股数(c语言)--两种解法 摘要:解题思路:解法一:直接暴力循环,遍历每一个满足a,b,c的值,时间复杂度(n3)解法二:在解法一的基础上进行了优化,根据a<b<c,可以得出1<a<333,a<=b<500,时间复杂度(n2),相比起…… 题解列表 2022年02月11日 0 点赞 0 评论 557 浏览 评分:9.9
Hifipsysta-2080-蓝桥杯基础练习-十六进制转八进制(C++代码) 摘要:```cpp #include #include #include #include using namespace std; long long M2Ten(string mystr…… 题解列表 2022年02月11日 0 点赞 0 评论 338 浏览 评分:0.0
龟兔赛跑预测 摘要:解题思路:首先输出v1,v2,t,s,l。s1表示兔子赛跑时间,l1表示兔子跑的距离;s2表示乌龟赛跑时间,l2表示乌龟跑的距离。我们要从第一秒开始比较。兔子和乌龟有一方到达终点比赛就会结束。考虑到兔…… 题解列表 2022年02月11日 0 点赞 0 评论 467 浏览 评分:9.9
Hifipsysta-2082-蓝桥杯基础练习-十六进制转十进制(C++代码) 摘要:```cpp #include #include #include using namespace std; int M2Ten(string mystr, int M){ i…… 题解列表 2022年02月11日 0 点赞 0 评论 684 浏览 评分: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 评论 1621 浏览 评分: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 评论 357 浏览 评分:0.0
Hifipsysta-1680-数据结构-八进制数(C++代码) 摘要:```cpp #include #include #include using namespace std; void Ten2N(int num, int N){ vecto…… 题解列表 2022年02月11日 0 点赞 0 评论 489 浏览 评分:9.9
分组背包 python 摘要:解题思路:动态规划,01背包衍生题型,只需多一个循环来遍历决策即可。注意事项:注意背包体积要大于物品体积才能将物品放入参考代码:c, n, t = map(int, input().split())d…… 题解列表 2022年02月11日 0 点赞 0 评论 444 浏览 评分:9.9
1480: 蓝桥杯算法提高VIP-模拟计算器 摘要:```c #include int main() { int m, n; char c; scanf("%d %d %c", &m, &n, &c); s…… 题解列表 2022年02月11日 0 点赞 0 评论 337 浏览 评分:0.0
1479: 蓝桥杯算法提高VIP-删除数组中的0元素 摘要::exclamation:**具体代码** ```c #include int CompactIntegers(int n,int arr[]) { for (int i = 0; …… 题解列表 2022年02月11日 0 点赞 0 评论 399 浏览 评分:0.0