摘要: 题目描述You are organizing a dance party. The party will be attended by n boys and n girls. There will be several rounds of dancing. In each round, you di... 阅读全文
posted @ 2014-05-02 23:03 Hust_BaoJia 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 和上一题差不多,都是用最大流来做,可是有人能告诉我STL和直接用数组,真的有那么大区别吗?STL超时,数组0ms,这是什么数据,有那么叼吗附上两份代码!希望过路的人能给我看看为什么会超时STL的#include#include#include#include#include#include#incl... 阅读全文
posted @ 2014-05-02 20:22 Hust_BaoJia 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 这个题网上很多人都说用状态压缩dp来做,我就是觉得状态压缩dp有点那么理解不上啊,不过如果这个题吧相邻的两个格子连起来,那不就是求最大权独立点集吗?奋战了三天,我的第一道最大流题目终于写出来了,高兴啊!#include#include#include#include#include#include#... 阅读全文
posted @ 2014-05-02 17:35 Hust_BaoJia 阅读(211) 评论(0) 推荐(0) 编辑
努力