for(int i=0;i<(1<<n);i++){ for(int j=0;j<n;j++){ if((i>>j)&1)cout<<a[j]<<" "; cout<<endl; } }
暂无评论,快来抢首评~
相关推荐