摘要: hihoCoder 1014题目提示已经很清楚了~贴代码……#include #include #include using namespace std;const int MAXN = 100000 + 10;const int alNum = 26;struct Node{ int cnt... 阅读全文
posted @ 2015-07-27 21:40 寒饼干 阅读(260) 评论(0) 推荐(0) 编辑
摘要: hdu2489 Minimal Ratio Tree题意:一个 至多 n=15 的 完全图 ,求 含有 m 个节点的树 使 边权和 除 点权和 最小题解:枚举 m 个 点 ,然后 求 最小生成树自己粗心。。。。WA 了 好多次……(233333 )#include #include #include... 阅读全文
posted @ 2015-07-27 19:50 寒饼干 阅读(176) 评论(0) 推荐(0) 编辑
摘要: hdu2492 Ping pong题意:一群乒乓爱好者居住在一条直线上,如果两个人想打比赛需要一个裁判,裁判的 位置 必须在两者之间 ,裁判的能力也必须不大于 参赛者最大的,不小于参赛者最小的白皮的题解:考虑 第 i 个 为裁判 的情况 如果 左边 比 a[i] 小的 人数 为 c[i],则 有 i... 阅读全文
posted @ 2015-07-27 19:45 寒饼干 阅读(202) 评论(0) 推荐(0) 编辑