hdu 1241 Oil Deposits DFS
传送门
http://acm.hdu.edu.cn/showproblem.php?pid=1241
题意是让你找有几块油田(一块油田的意义是许多相邻的@区域形成的大的区域),然后八个方向以内都算相连。
DFS去找有几块油田。
ps:又cin又printf的可能很丧心病狂,我还在慢慢适应cin cout,习惯一下子改不过来...汗
#include
#include
#inc
原创
2017-04-03 18:54:13 ·
277 阅读 ·
0 评论