摘要: 参考http://blog.sina.com.cn/s/blog_7de5c6210100tm1h.html其实是水题。。。。。。。。。。。。 1 #include 2 #include 3 int mat[ 12 ][ 12 ],temp[ 12 ][ 12 ]; 4 bool flag[ 12 ]; 5 6 void solve(){ 7 memset( temp,0,sizeof( temp ) ); 8 for( int i=0;i<4;i++ ){ 9 for( int j=0;j<10;j++ ){10 if( mat[i]... 阅读全文
posted @ 2013-07-20 11:14 xxx0624 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 一共2^15个状态比较简单 1 /* 2 2^15 states 3 */ 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 11 const int maxn = 10005; 12 const int inf = 99999999; 13 const int dx[]={0,0,1,-1,1,-1,1,-1}; 14 const int dy[]={1,-1,0,0,-1,1,1,-1}; 15 char mat[ 12 ][ 12 ]; 16 struct ... 阅读全文
posted @ 2013-07-20 00:29 xxx0624 阅读(559) 评论(0) 推荐(0) 编辑