题解列表

筛选

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……

C++简单解法

摘要:解题思路:属于基础题目,我写的是一般的写法,一个一个情况的筛选,可能会比较麻烦注意事项:参考代码:#include<iostream>using namespace……

C++简单解法

摘要:解题思路:属于基础题目注意事项:注意不能写if (a<60||b<60),这样写不仅仅有一科不及格时会输出1,两科都不及格时也会输出1.参考代码:#include<iostream&……

C++简单解法

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