地宫取宝 -- DP 摘要:解题思路:dp[x][y][num][maxValue] 为走到坐标(x, y)时, 不同行走方案总数的最优值(最大值), num为背包中的物品总数, maxValue为背包单个物品最大的价值。此时…… 题解列表 2022年06月10日 0 点赞 0 评论 400 浏览 评分:0.0
蓝桥杯2019年第十届国赛真题-最长子序列 摘要:```cpp #include using namespace std; int main() { string s,t; cin>>s>>t; int ps=0,pt=…… 题解列表 2022年06月10日 0 点赞 0 评论 510 浏览 评分:0.0
思维题-解谜游戏 摘要:分为四组,组内互换组间不能互换,因此每组每种颜色数量必为1/4 ```cpp // 外圈:1 2 3 | 4 5 6 | 7 8 9 | 10 11 12 // 中圈:1 2 | 3 4…… 题解列表 2022年06月10日 0 点赞 0 评论 571 浏览 评分:2.0
精度控制到小数点后三位 摘要:解题思路:不需要思路注意事项:会用就好参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double i;…… 题解列表 2022年06月10日 0 点赞 0 评论 371 浏览 评分:0.0
小九九简单版(注意题目的格式要求) 摘要:解题思路:循环就完事了注意事项:注意格式参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ for (int…… 题解列表 2022年06月10日 0 点赞 0 评论 375 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考了作者SuperJoker的代码,觉得能再优化点,把 i 改为 i/2;参考代码:i#include<bits/stdc++.h>using namespace std;in…… 题解列表 2022年06月09日 0 点赞 0 评论 377 浏览 评分:0.0
编写题解 1631: 蓝桥杯算法训练VIP-数位分离 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; int main() { s…… 题解列表 2022年06月09日 0 点赞 0 评论 382 浏览 评分:0.0
编写题解 1622: 蓝桥杯算法训练VIP-字符删除 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string.h> using namespace std; int main() { char…… 题解列表 2022年06月09日 0 点赞 0 评论 389 浏览 评分:0.0
蓝桥杯2020年第十一届国赛真题-皮亚诺曲线距离 摘要:``` #include #include using namespace std; typedef long long LL; // 初始每个坐标到起点的距离 int d[] = {…… 题解列表 2022年06月08日 0 点赞 0 评论 708 浏览 评分:0.0
自定义函数之字符串反转,C++解题 摘要:解题思路:调用C++自带的reverse函数注意事项:头文件algorithm参考代码:#include <iostream>#include<algorithm>using namespace st…… 题解列表 2022年06月07日 0 点赞 0 评论 382 浏览 评分:0.0