摘要:
/* Name: NYOJ--587--blockhouses Author: shen_渊 Date: 16/04/17 21:43 Description: dfs,逐个点深度优先搜索,不管能不能放炮台都得继续搜索,能放时考虑放不放 */ #include #include using namespace std; bool check(int,int);... 阅读全文
posted @ 2017-04-16 21:47
朤尧
阅读(288)
评论(0)
推荐(0)
摘要:
/* Name: NYOJ--1100--WAJUEJI which home strong! Date: 15/04/17 21:02 Description: bfs+优先队列 */ #include #include #include using namespace std; struct node{ int x,y,lev; node():le... 阅读全文
posted @ 2017-04-16 19:47
朤尧
阅读(406)
评论(0)
推荐(0)