signed

QiShunwang

“诚信为本、客户至上”

常见模板

2021/3/21 9:57:07   来源:

dfs模板

for (int m = 0; m < 10; ++m){
	if (!flag[m]){
		flag[m] = 1;
		a[i] = m;
		dfs(i + 1);
		flag[m] = 0; //还原当前
		}
}