2014年7月16日

摘要: 集训第一场 B题dfs简单题 做完这题就撤,回来再继续做吧= = 水手加油~ 1 #include 2 #include 3 4 int Count; 5 int to[4][2] = {{-1,0},{1,0},{0,1},{0,-1}}; 6 int row,col; 7 char room[... 阅读全文
posted @ 2014-07-16 20:02 lpt 阅读(115) 评论(0) 推荐(0) 编辑
 
摘要: 集训第一场,A题dfs简单题之前看过dfs,没实现过,第一次实现出来O(∩_∩)O~水手加油~ 1 #include 2 #include 3 using namespace std; 4 int row,col; 5 char oil[1000][1000]; 6 int to[8][2]={{-... 阅读全文
posted @ 2014-07-16 20:00 lpt 阅读(97) 评论(0) 推荐(0) 编辑
 
摘要: Trie树,第一次写,简单的建树+搜索它的思路hiho上讲得很清楚,good~ 1 #include 2 #include 3 using namespace std; 4 char word[11]; 5 int n,m; 6 struct trie 7 { 8 int num; 9 ... 阅读全文
posted @ 2014-07-16 19:54 lpt 阅读(140) 评论(0) 推荐(0) 编辑