会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
MeowMeowMeow
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2017年9月5日
Hoj 13963 Airports 最大匹配/最小路径覆盖
摘要: //和老赵简单讨论了一下 就学会了 感觉自己好机智http://blog.csdn.net/l04205613/article/details/6278394#include <iostream> #include <algorithm> #include <stdio.h> #include <s
阅读全文
posted @ 2017-09-05 13:57 MeowMeowMeow
阅读(377)
评论(0)
推荐(0)
2017年8月28日
hoj 13926 Floppy Music
摘要: //手动memset就wa了#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; const int maxn=(int)1e...
阅读全文
posted @ 2017-08-28 21:47 MeowMeowMeow
阅读(174)
评论(0)
推荐(0)
hoj 13927 Goblin Garden Guards
摘要: //好笨啊啊啊#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; const int maxn=(int)1e5 +10...
阅读全文
posted @ 2017-08-28 20:09 MeowMeowMeow
阅读(139)
评论(0)
推荐(0)
hoj 13911 Squeeze the Cylinders
摘要: //喜欢如此简单的代码 但是我却如此的蠢#include #include #include #include #include #include #include #include #include #include #define LL long long #define INF 2100000000 #define fi first #define se second ...
阅读全文
posted @ 2017-08-28 11:16 MeowMeowMeow
阅读(154)
评论(0)
推荐(0)
2017年8月26日
HOJ13907 Diana and the Golden Apples
摘要: 简单背包题,写上是因为这个板子还不错,本校OJ有个恶心的地方,单kas输入的时候写成多kas会wa~~
阅读全文
posted @ 2017-08-26 20:39 MeowMeowMeow
阅读(178)
评论(0)
推荐(0)
hdu 6180
摘要: 题意:略 思路:是简单的贪心,但是,一直不知道怎么才能更好地实现,然后发现了multiset这种神奇的东西,然后发现一些随时查找随时删除的时候很好用的工具,STL的map、multimap、set、multiset都有三个比较特殊的函数,lower_bound、upper_bound、equal_r
阅读全文
posted @ 2017-08-26 18:20 MeowMeowMeow
阅读(246)
评论(0)
推荐(0)
2017年8月25日
hdu 6178 Monkeys
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6178 题意:给定一颗树有n个节点,有k个猴子,每个猴子在一个节点上,并且每个节点只能有一只猴子。要求砍掉一些边,使得每只猴子至少与一只猴子有边相连,求剩余的最少的边。 题解:因为一条边可以放两只猴子,那
阅读全文
posted @ 2017-08-25 21:20 MeowMeowMeow
阅读(194)
评论(0)
推荐(0)
hdu 6169
摘要: 题目:找出【L,R】内,所有n*k的和,n为1或者是大于等于k的质数; 思路:遇到很多次二次筛的,再次遇到还是忘记了反向思维,在此,我们不去找符合的情况,而是去寻找不符合的情况,因为符合的情况太难找,不符合的就很好找了,用K以下的质数去筛就可以了,考虑到当k>320000的时候,k^2超出数据范围,
阅读全文
posted @ 2017-08-25 16:53 MeowMeowMeow
阅读(223)
评论(0)
推荐(0)
2017年8月23日
HDU6155 Subsequence Count
摘要: 题意:找子区间的子序列,多种操作,多种查询,操作为翻转区间01串; 思路:线段树维护区间矩阵; 首先看递推方程:当是s[i]=0时dp[i][0]=dp[i-1][0]+dp[i-1][1]+1,dp[i][1]=dp[i-1][1];为一的时候同理,再次发现我们需要一个三维矩阵来更新递推式,那我们
阅读全文
posted @ 2017-08-23 21:33 MeowMeowMeow
阅读(194)
评论(0)
推荐(0)
hdu 6170
摘要: 题意:正则表达式匹配 思路:DP dp[i][j]表示b串中0~i与0~j是否可以匹配,具体的转移看代码:
阅读全文
posted @ 2017-08-23 18:40 MeowMeowMeow
阅读(162)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告