Hungry3

梦想到达塔顶的蜗牛

2013年11月12日

hdu 4777 Rabbit Kingdom 离线树状数组

摘要: #include#include#include#includeusing namespace std;const int maxn=200100;struct Q{ int l,r,id; bool operator hav[maxn],vt[maxn];int n,m;void getp(){ int cnt,i,j; cnt=0; memset(isp,true,sizeof(isp)); isp[0]=isp[1]=false; for(i=2;i1)hav[i].push_back(ti); }}int lowbit(int i){ ... 阅读全文

posted @ 2013-11-12 23:58 Hungry3 阅读(170) 评论(0) 推荐(0)

“自作自受”

摘要: 搞难题的感觉真痛苦,大半天下来就那么点感悟,不过还是挺爽的=、= 阅读全文

posted @ 2013-11-12 21:09 Hungry3 阅读(128) 评论(0) 推荐(0)

HDU 3065 病毒侵袭持续中 AC自动机

摘要: #include#include#include#include#include#includeusing namespace std;map hash;const int max_node=30000+10;const int son_num=200;int cnt[1010];class ACAutomaton{ private: int sz; int trie[max_node][son_num]; int val[max_node]; int fail[max_node]; public: void init() { sz... 阅读全文

posted @ 2013-11-12 00:25 Hungry3 阅读(142) 评论(0) 推荐(0)

导航