摘要:
Problem Detail - 【提高】小X学游泳 - 追梦算法网 也就是上下左右同一个数字的为一个连通块,看看最大的连通块有多大 其实也就是flood fill问题啦 dfs: #include<iostream> using namespace std; int n,m; const int 阅读全文
摘要:
和全排列类似,不过不是1开始,是指定的数字开始 Problem Detail - 【递归】n个数的全排列 - 追梦算法网 #include<iostream> #include<algorithm> using namespace std; const int N=15; int a[N],p[N] 阅读全文