摘要: DescriptionBackgroundOur knight lives on a chessboard that has a smaller area than a regular 8 * 8 board,but it is still rectangular.Can you help this... 阅读全文
posted @ 2014-08-14 01:29 sola94 阅读(158) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2544最简单的最短路了吧 改天试试优化版本的#include#include#include#include#include#include#include#define mem(a,b) memset(a,b,s... 阅读全文
posted @ 2014-08-14 01:21 sola94 阅读(98) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2015水题啦 直接贴代码#include#include#include#include#include#include#include#define mem(a,b) memset(a,b,sizeof(a))#... 阅读全文
posted @ 2014-08-14 01:19 sola94 阅读(135) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2063思路:先给一个女生1找个对应的男生再到下个女生2 如果这个女生找到的男生已经有对应的女生1再找女生1的增广路到最后得到最大匹配#include#include#include#include#include#... 阅读全文
posted @ 2014-08-14 01:12 sola94 阅读(226) 评论(0) 推荐(0) 编辑