hdu4462 Scaring the Birds状态压缩
#include
#include
int r[10],c[10],R[10],ji[10],vis[51][51],n,k,ans;
int abs(int a)
{
if(a>=0)return a;
else return -a;
}
bool pan(int s)
{
int t=0,i,j;
for(i=0;i<k;i++)
if(s&(1<<i))
ji[t++]=i
原创
2014-07-25 15:50:49 ·
411 阅读 ·
0 评论