题解列表

筛选

运用函数解决问题

摘要:解题思路:调用reverse函数在进行相加注意事项:建议了解字符串相关的函数参考代码#include <iostream>#include <string>#include <algorithm>us……

蓝桥杯历届试题-回文数字

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int n; bool f(int x){     int a[6],i=0,nu……

题解 妹子杀手的故事[ C++]

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

Dinner C++

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

思路清晰的递归

摘要:解题思路:         已知第一年有一只母牛,且每年年初会生一子,子会隔三年生一子,定义一个函数count(),功能是求前n年的母牛的数量,前n年的母牛数量是前n-1年的数量加上第n年的数量注意事……

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

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

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

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