coder_new

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年5月8日

摘要: DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, locating on the coasting, can only cover d distance, so an island in the sea can be covered by a radius i 阅读全文
posted @ 2012-05-08 17:56 coder_new 阅读(279) 评论(0) 推荐(0) 编辑

摘要: DFS+状态位View Code 1 #include<iostream> 2 using namespace std; 3 4 int chess=0; 5 int step; 6 bool flag=false; 7 int ri[16],cj[16]; 8 9 bool isopen(void)10 {11 if(chess==0xFFFF)12 return true;13 else14 return false;15 }16 17 void flip(int bit)18 {19... 阅读全文
posted @ 2012-05-08 11:44 coder_new 阅读(154) 评论(0) 推荐(0) 编辑