题解列表

筛选

C++简单解法

摘要:解题思路:属于基础题目注意事项:参考代码:一般做法#include<iostream>using namespace std;int main(void……

C++简单解法

摘要:解题思路:属于基础题目,重要的是知道求绝对值的函数fabs及如何控制小数点后的位数注意事项:参考代码:#include<iostream>#include<cmath>#inc……

C++简单解法

摘要:解题思路:属于基础题目注意事项:参考代码:#include<iostream>using namespace std;int main(void){ c……

C++简单解法

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ long&nb……

C++简单解法

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int&nbs……

dfs求解自然数的拆分

摘要: #include using namespace std; int n,a[50];//a用来存储分割结果 void dfs(int t) { if (!t && a[0] ……

扩大面积+寻路径

摘要:```cpp#include using namespace std;int X[]={0,0,1,-1};int Y[]={1,-1,0,0};int a[15][15]……

C++ : map容器的超简单使用方法

摘要:解题思路:注意事项:把map容器当成正常的数组使用,区别就是内存空间可以变化,存储元素多少取决于我们需要多少我的解决这题的方法可能比较弯弯绕绕,没有那么直接参考代码:#include<bits/……

C++简单解法

摘要:解题思路:属于基础题目注意事项:参考代码:#include<iostream>using namespace std;int main(void){ i……