会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
kewowlo
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
8
9
10
11
12
13
14
15
16
···
21
下一页
2014年9月1日
【DP】HDU 2189 悼念512汶川大地震遇难同胞——来生一起走
摘要: 打一个小于150的素数表为了分成的组的人数不重复用dp[i][j] 表示i表示i个人 j表示分成的组内的最大素数序号#include #include #include #include #include #include #include using namespace std;#include ...
阅读全文
posted @ 2014-09-01 10:39 kewowlo
阅读(167)
评论(0)
推荐(0)
2014年8月31日
【DP】UVA 111 History Grading
摘要: 输入的序列是表示 ai的位置上值为 i然后就是最长公共子序列#include #include #include #include #include #include #include using namespace std;#include #include #include #include #...
阅读全文
posted @ 2014-08-31 20:38 kewowlo
阅读(123)
评论(0)
推荐(0)
2014年8月28日
【几何】HDU 1007 Quoit Design 最近点对
摘要: 模板#include#include#include#include#include#include#include#includeusing namespace std;#include#include#include#include#include#includestruct Q{ dou...
阅读全文
posted @ 2014-08-28 18:25 kewowlo
阅读(107)
评论(0)
推荐(0)
【字典树】POJ 2418 Hardwood Species
摘要: 嘀嘀嘀有人知道 Trie()里 加了 sz=1;就一直CE怎么破???如果有人看到能教教我吗??我还不会c++弱菊不胜感谢!Orz#include#include#include#include#include#include#include#includeusing namespace std;#...
阅读全文
posted @ 2014-08-28 15:35 kewowlo
阅读(130)
评论(0)
推荐(0)
2014年8月27日
Codeforces 461A Appleman and Toastman
摘要: 思路:需要让大值多加,所以每次拆出最小的值#include#include#include#include#include#include#include#include#includeusing namespace std;#include#include#include#include#incl...
阅读全文
posted @ 2014-08-27 13:45 kewowlo
阅读(166)
评论(0)
推荐(0)
2014年8月26日
【字典树】HDU 1247 Hat’s Words
摘要: 题意:给你一个单词表 输出能由另外两个单词组成的单词先判断一个单词的前缀是否为单词表中的单词,再判断后缀是否为单词表中的单词;#include#include#include#include#include#include#include#include#includeusing namespace...
阅读全文
posted @ 2014-08-26 15:56 kewowlo
阅读(166)
评论(0)
推荐(0)
2014年8月25日
【瞎搞】HDU 1422 重温世界杯
摘要: 给你生活费和花费,看你最多活到几个城市。。已经给好了城市游玩顺序只要想清楚。。记录好起始的位置,若当前游玩结束更新最大值和起始位置#include#include#include#include#include#include#include#include#includeusing namespa...
阅读全文
posted @ 2014-08-25 17:28 kewowlo
阅读(195)
评论(0)
推荐(0)
2014年8月21日
【最小割】HDU 4971 A simple brute force problem.
摘要: 说是最大权闭合图....比赛时没敢写....题意一共有n个任务,m个技术完成一个任务可盈利一些钱,学习一个技术要花费钱完成某个任务前需要先学习某几个技术但是可能在学习一个任务前需要学习另几个任务求最多能赚多少钱咯先将缩点将需要一起学掉的技术缩成一个点建s--任务 权值为该任务盈利多少钱建技术(缩点后...
阅读全文
posted @ 2014-08-21 22:30 kewowlo
阅读(143)
评论(0)
推荐(0)
2014年8月20日
【组合】HDU 3908 Triple
摘要: 题意:在n个数中选出三个数使得 两两互质或不互质直接求两两互质和不互质的个数比较麻烦所以求出不满足条件的组合先记录下b[i]:表示与第i个数互质的数的个数c[i]表示与第i个数不互质的个数b[i]*c[i]则表示选择了第i个数有这么多种情况不符合条件sum+=b[i]*c[i](i=1...n)每种...
阅读全文
posted @ 2014-08-20 18:47 kewowlo
阅读(159)
评论(0)
推荐(0)
【线段树】HDU 3397 Sequence operation 区间合并
摘要: 操作Change operations:0 a b change all characters into '0's in [a , b]1 a b change all characters into '1's in [a , b]2 a b change all '0's into '1's an...
阅读全文
posted @ 2014-08-20 10:50 kewowlo
阅读(163)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
21
下一页
公告