摘要: 第一题:K等于1或者2,非常简单。略。K更多的情况,http://www.cnblogs.com/lautsie/p/4242975.html,值得思考。第二题:http://www.cnblogs.com/lautsie/p/4245242.htmlBFS和DFS都可以,注意的是,写的时候,可以往... 阅读全文
posted @ 2015-01-24 20:48 阿牧遥 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 第一题,http://community.topcoder.com/stat?c=problem_statement&pm=13462&rd=16076模拟就可以了。#include #include using namespace std;class Target {public: vector... 阅读全文
posted @ 2015-01-24 20:39 阿牧遥 阅读(193) 评论(0) 推荐(0) 编辑