摘要: http://community.topcoder.com/stat?c=problem_statement&pm=13628&rd=16278标程是BFS,我用DFS,都可解。这里复杂的把pair写了hash函数,其实直接用个矩阵来存bool就可以了。#include #include #incl... 阅读全文
posted @ 2015-01-23 23:14 阿牧遥 阅读(373) 评论(0) 推荐(0) 编辑