题解列表
假币问题(模拟,分治)
摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&……
倒杨辉三角形(递推)
摘要:解题思路:递推注意事项:参考代码:#include<iostream>#include<iomanip>usingnamespacestd;……
作业调度方案(模拟)
摘要:解题思路: 模拟注意事项:参考代码:#include<iostream>usingnamespacestd;constintN&nb……
二维数组求解多状态dp
摘要:多状态dp 题目说了 **跑or休息** 有点01背包的感觉 就是在暗示**二维数组求解** 然后是我们熟悉的动规三部曲 先定义状态 这里dp[i][j]我表示在第i分钟 j疲倦度下的最大路程 然后……
编写题解 3076: 中缀表达式值(expr)(C++版) !!! 加入“乐天之小团”可以看很多答案 !!!
摘要:```cpp#include#includeusing namespace std;const int N=1e5+5;string st;pair pf[N];int……
编写题解 1505: 蓝桥杯算法提高VIP-单词个数统计
摘要:解题思路:数空格,最后结果比空格多一注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;int ……