[bzoj2239] 猜谜 迭代深搜 or 动态规划
搜索:迭代深搜即可 dp: +和*是两个不同的状态,如果一边考虑加,一边考虑乘,实在麻烦。 不如分开进行考虑。includeincludeincludeusing namespace std;int T , n , Max_dep; int num[25][25]; bool have_ans , have_zero[25] ; string str;void Dfs(int x , i
原创
2017-08-16 22:46:10 ·
327 阅读 ·
0 评论