Loading

摘要: 深度优先搜索大概的框架如下: int dfs(int x,int y,int step){ if(达到目标状态) { //进行对应操作: return 0; } //遍历所有情况 for(int i=0;i#include#includei... 阅读全文
posted @ 2019-05-12 15:31 cheney-pro 阅读(48) 评论(0) 推荐(0)
摘要: #include#include#include#include#include#includeusing namespace std;int max(int a,int b){return a>b?a:b;}int min(int a,int b){retu... 阅读全文
posted @ 2019-05-12 09:01 cheney-pro 阅读(38) 评论(0) 推荐(0)