题解列表

筛选

字符删除STL解法AC

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,s1; cin>>s>>s1; int n……

高精度乘法 新手易懂 AC

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){string s,s1;cin>>s>>s1;if(s=="0……

发工资咯(动态规划)

摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; //如果发101元,有6种情况: //1.f(101)=f(101-1)+1 /……

完数的判断(c++)

摘要:解题思路:利用for循环判断因子注意事项:每次循环开始前要重置sum和k的值参考代码:#include<bits/stdc++.h>using namespace std;int main() {  ……

1388: GC的苦恼,c++代码实现

摘要:##1388: GC的苦恼 ***废话多说,直接上代码*** ```cpp #include using namespace std; int main(){ int a; whil……

判断第几天c++简单代码

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){    int y,m,d,a[12]={31,……

链表合并c++ stl

摘要:解题思路:先排序再合并然后重新排序参考代码:#includeusing namespace std; list<pair> a,b; int main() { int n,m; ci……

走迷宫(bfs)

摘要:解题思路:很基础的bfs 没什么好说的 看代码即可注意事项:参考代码:#include<iostream> #include<queue> using namespace std; typede……

误落迷宫(dfs)

摘要:解题思路:判断该点是否在环上注意事项:  单项走 只能走过去不能走回来参考代码:#include<iostream> #include<cstring> using namespace std; ……