Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
第一次这么干void solve(int m,int n) { if(check(m,n)) { ans++; visited[m][n]=true; solve(m-1,n); solve(m+1,n); solve(m,n-1); solve(m,n+1); } } 递归四次没剪枝这是O(4^n)⊙﹏⊙b汗 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator