- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 ZOJ-Farm Irrigation(dfs)
Farm Irrigation Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these squares. Different square has a d...
2019-01-26 21:02:48 1023
原创 UVA-Parentheses Balance
Parentheses Balance 题目链接: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=614 题意描述: 该题是判断所给的字符串括号是否匹配,如果匹配输出Yes若果是空串也输出Yes否则输出No 解题思路: ...
2019-01-26 20:00:05 1060
原创 ZOJ-Red and Black(dfs)
Red and Black There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent til...
2019-01-22 14:12:12 1020
原创 vjudge-Knight Moves(bfs)
Knight Moves 题目链接 https://vjudge.net/problem/UVA-439 题意描述: 给你一个起点一个终点,其实最少多少步能从起点走到终点,骑士只能走2*3的格子的对角线 解题思路: 广搜,把每个点遍历一下入队,找到了跳出即可 程序代码: #include<stdio.h> #include<string.h> #in...
2019-01-22 12:20:25 1162
原创 POJ-Oil Deposits(dfs)
Oil Deposits The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid t...
2019-01-18 14:38:54 1033
两年ACM竞赛所有算法总结.docx
2020-04-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人