摘要: DFS即深度优先搜索 板子 //Dfs板子 void dfs(int x){ if(x>n){solve();return;} for(int i=1;i<=n;++i) if(check(x,i)){ arr[x]=i; book(x,i,true); dfs(x+1); book(x,i,fal 阅读全文
posted @ 2021-05-14 21:02 Tai_mount 阅读(43) 评论(0) 推荐(0)