题解列表

筛选

编写题解 1162: 密码(C++)

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

优化的DFS算法(比较好懂)

摘要:解题思路:        分析得到是一道全排列的题,对输入的N,形成了N位数,然后进行全排列,筛选出满足条件的特殊质数。(暴力法比较直接,但是有可能会时间超限)        所以(这才是重点),在原……

1924: 01背包-C++

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int N;//物品个数 int C;//背包容量 int v[1000],w[1……

两个函数都用递归的操作

摘要:解题思路:注意事项:参考代码:#include<iomanip>using namespace std;double fact(double n){ if(n==1) return 1; return……

一般般的解法

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int m,t,findmin[10];……

c++分段函数

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