dfs(深搜)+剪枝优化 摘要:###看到有多少种方案,基本上不是爆搜就是DP,很显然这道题爆搜很好解决(~~其实就是不会DP,看不出来,哈哈哈~~) ###### 爆搜都是一颗搜索树,基本搜索过程就是这样: ,按递归思想就是往前推喽 那接下来从最末尾的2枚举1*2*(3~20)可以等于20的数,很明…… 题解列表 2024年04月30日 0 点赞 0 评论 258 浏览 评分:0.0
分解因数分解因数分解因数 摘要:解题思路:注意事项:参考代码://因数分解 #include<iostream> using namespace std; int ans,n,t; void f(int a,int b) …… 题解列表 2024年01月31日 0 点赞 0 评论 228 浏览 评分:0.0
分解因数(暴搜) 摘要:解题思路:暴力搜索,满足条件则方案+1 参考代码: ```cpp #include using namespace std; #define ll long long const int …… 题解列表 2023年02月21日 0 点赞 3 评论 427 浏览 评分:7.3