这里写目录标题 前言 题目 思想 代码 前言 题目倒是挺香的,这dfs还不错 题目 烤鸡 这道题稳稳的dfs 思想 这道题还是用dfs解是最容易的 dfs有几个特征 1.截止条件 如果配料配齐10种,则截止,但还要看是否等于美味程度,如果不等,就return掉 …… 其它都很正常 代码 #include <iostream> using namespace std; const int N=1e5; int n; int flag[N][10]; int ans; int sel[N]; void