24 game (array)
ai(0<=i<=n-1)
for (int i=0,i<2^n-1,I++)
s[i]=y
for (int i=0,i<n,I++)
s[2^i]={ai}
for (int i=0,i<2^n-1,I++)
s[i]=f[i]
check[S[2^N_1)}
第二种解法
if(union<n+1)
return(i*POs-1)
int pos()
{
postree{i^n-1)
costtree(2^n-1)
}sort begin(n)
dfs(f(union-x),x)