摘要: #include int book[10001]; int add[4]; int one[10001]; int two[10001]; void fun(int x){ int temp=x; int y=x; int t=0; while(x){ add[t]=x%10; t++; x=x/10; } ... 阅读全文
posted @ 2017-03-27 20:34 Mr.Struggle 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 思路:题目是很简单的DFS。求出能走到的"."。因此我们完全不需要回溯,只需要遍历下去,每递归一次则结果+1,最后得出答案。 阅读全文
posted @ 2017-03-27 14:46 Mr.Struggle 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 思路:深度搜索全排列,将每两个相连的结果做成表格,得出最小。 阅读全文
posted @ 2017-03-27 12:18 Mr.Struggle 阅读(577) 评论(0) 推荐(0) 编辑