摘要: 最水的一道石油竟然改了一个小时,好菜好菜。 x<=r y<=c x<=r y<=c x<=r y<=c x<=r y<=c 阅读全文
posted @ 2017-03-14 22:11 benTuTuT 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; int a[100001],vis[100001]; queueq; int bfs(int n,int k) { int head,next,i; q.push(n); a[n]=0; vis[n]=1; while(q.size(... 阅读全文
posted @ 2017-03-14 20:51 benTuTuT 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; int a[5][5],b[5][5]; int di[4][2]={0,1,0,-1,1,0,-1,0}; void bfs(int x,int y) { int tx=x,ty=y,i; if(a[x][y]==0) { a[x][y]=1... 阅读全文
posted @ 2017-03-14 17:43 benTuTuT 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; stacks1,s2; int a[6][6],b[6][6]; int di[4][2]={1,0,0,-1,-1,0,0,1}; int judge(int x,int y) { return x>=0&&x=0&&y<5&&a[x][y]==0&&!b[x][y]; }... 阅读全文
posted @ 2017-03-14 09:28 benTuTuT 阅读(1788) 评论(0) 推荐(0) 编辑