代码是很优雅,然而有点看不懂。。。
第五题的dfs下的循环有谁能讲解一下吗?
for(int i = s; i; i = (i - 1) & s) tmp = max(tmp, sta[i] + dfs(s ^ i, cur + 1));