题解列表
dfs求解自然数的拆分
摘要: #include using namespace std; int n,a[50];//a用来存储分割结果 void dfs(int t) { if (!t && a[0] ……
dfs通过递归试探求取符合条件的格子数
摘要: #include using namespace std; const int N = 25; int n, m,t,max_step, v[N][N];//a基于1-based……
C++ : map容器的超简单使用方法
摘要:解题思路:注意事项:把map容器当成正常的数组使用,区别就是内存空间可以变化,存储元素多少取决于我们需要多少我的解决这题的方法可能比较弯弯绕绕,没有那么直接参考代码:#include<bits/……