1111: Cylinder(c++代码) 摘要:```cpp #include #include using namespace std; double h,w,r,v1,v2; int main() { while(cin>…… 题解列表 2022年09月10日 0 点赞 0 评论 512 浏览 评分:9.9
1110: 2^k进制数 摘要:```cpp #include #include using namespace std; int pr,max2,tot=0; void dp(int bit,int n) { …… 题解列表 2022年09月10日 0 点赞 0 评论 442 浏览 评分:9.9
1109: Hanoi双塔问题 摘要:```cpp #include #include using namespace std; int num[1000],n; int main() { memset(num,0,…… 题解列表 2022年09月10日 0 点赞 0 评论 580 浏览 评分:9.9
BFS广度优先搜索 摘要:解题思路:注意事项:如果不是多组数据,代码会简洁一些,注释有些没有根据本题改,代码是套用自己之前写过题的模板参考代码:#include<iostream> #include<queue> //使用…… 题解列表 2022年09月08日 0 点赞 0 评论 332 浏览 评分:9.9
BFS广度优先搜索 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<queue> //使用队列需要的头文件(也可以用数组手动模拟队列) #include<cstring>//使…… 题解列表 2022年09月08日 0 点赞 1 评论 358 浏览 评分:9.9
优质题解 K-进制数(排列组合解) 摘要:## 1.前言 本解需要用到高中排列组合的一些知识 ## 2.题意分析 > 简而言之,本题是让我们求一个N位数($$4…… 题解列表 2022年09月07日 0 点赞 0 评论 1086 浏览 评分:9.6
编写题解 1229: 最小公倍数 摘要:解题思路:递归,求最大公约数(greatest common divisor,gcd),再求最小公倍数(least common multiple,lcm)。注意事项:参考代码:#include<io…… 题解列表 2022年09月06日 0 点赞 0 评论 359 浏览 评分:0.0
蓝桥杯基础练习VIP-高精度加法——模拟手写竖式计算 摘要:解题思路: 按照手算列竖式的方法做模拟运算,结果用字符串存储即可。注意事项: 对进位的处理要谨慎。参考代码://头文件引入 #include<iostream> #include <s…… 题解列表 2022年09月05日 0 点赞 0 评论 505 浏览 评分:9.9
蓝桥杯2022年第十三届省赛-统计子矩阵(前缀和暴力 and 双指针优化) 摘要:## 1.暴力解法--二维前缀和(只能过70%) ``` #include using namespace std; typedef long long LL; const int N…… 题解列表 2022年09月05日 0 点赞 0 评论 1393 浏览 评分:7.8