yo_haha
码龄10年
关注
提问 私信
  • 博客:6,341
    6,341
    总访问量
  • 24
    原创
  • 1,788,000
    排名
  • 0
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:安徽省
  • 加入CSDN时间: 2015-04-13
博客简介:

yo_haha的专栏

查看详细资料
  • 原力等级
    当前等级
    0
    当前总分
    0
    当月
    0
个人成就
  • 获得1次点赞
  • 内容获得0次评论
  • 获得0次收藏
创作历程
  • 24篇
    2015年
成就勋章
TA的专栏
  • HDOJ
    21篇
  • HDOJ
  • 大数
    1篇
  • 图论
    3篇
  • dp
    4篇
  • 数论
    1篇
  • 搜索
    1篇
  • 线段树
    3篇
  • 二分
    1篇
  • 字典树
    2篇
  • kmp
    2篇
创作活动更多

超级创作者激励计划

万元现金补贴,高额收益分成,专属VIP内容创作者流量扶持,等你加入!

去参加
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

hdu 1195 双向bfs

http://acm.hdu.edu.cn/showproblem.php?pid=1195 这代码好长,不过好多重复的内容。#include <iostream> #include <queue> #include <cstring> using namespace std; struct node { int x, step; }; int vis[10000]; node q1[10
原创
发布博客 2015.06.19 ·
281 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu 1686 Oulipo

http://acm.hdu.edu.cn/showproblem.php?pid=1686 简单kmp#include <cstdio> #include <cstring> using namespace std; int Next[10005]; char c[1000005]; char t[10005]; int main() { int num; scanf("%d",
原创
发布博客 2015.06.09 ·
230 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu 1358 period

http://acm.hdu.edu.cn/showproblem.php?pid=1358 求某个前缀含几个循环 用kmp的next数组#include <cstdio> #include <cstring> using namespace std; int Next[1000005]; char c[1000005]; int main() { int len; int cnt
原创
发布博客 2015.06.09 ·
360 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu 1671 字典树

http://acm.hdu.edu.cn/showproblem.php?pid=1671 简单的字典树 注意每次要释放内存 不然会MLE#include <iostream> #include <cstring> #include <string> #include <algorithm> using namespace std; struct node { int sign;
原创
发布博客 2015.06.08 ·
289 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu 1251 字典树

http://acm.hdu.edu.cn/showproblem.php?pid=1251 MLE了无数次…最后换了种方法#include <iostream> #include <cstring> #include <cstdio> using namespace std; struct node { int num; int next[26]; void ini()
原创
发布博客 2015.06.08 ·
275 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu 2899 二分

http://acm.hdu.edu.cn/showproblem.php?pid=2899在[0,100]上F’x单调增 所以求F’(x0)=0 将x0代入F(x) 即为答案#include <cstdio> #include <cmath> #include <iostream> using namespace std; const double res=1e-6; double ans(d
原创
发布博客 2015.06.04 ·
307 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu 1394 线段树求逆序数

http://acm.hdu.edu.cn/showproblem.php?pid=1394#include <cstdio> using namespace std; const int maxx=5100; int sum[maxx<<2]; #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 void pushup(int rt) { s
原创
发布博客 2015.06.01 ·
227 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu 1754 I hate it

http://acm.hdu.edu.cn/showproblem.php?pid=1754#include <cstdio> using namespace std; const int maxx=200000; int sum[maxx<<2]; #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 int MAX(int a, int b) {
原创
发布博客 2015.05.31 ·
227 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu 1166 敌兵布阵

http://acm.hdu.edu.cn/showproblem.php?pid=1166 线段树模板题#include <cstdio> using namespace std; #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 const int maxx=55555; int sum[maxx<<2]; void PushUp(int rt
原创
发布博客 2015.05.31 ·
257 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

dp hdu 1160 FatMouse's Speed

http://acm.hdu.edu.cn/showproblem.php?pid=1160#include <iostream> #include <algorithm> #include <cstdio> using namespace std; struct mice { int w,s,num,p; }; bool cmp(mice a, mice b) { if(a.w==
原创
发布博客 2015.05.29 ·
236 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

dp hdu 1003 maxsum

http://acm.hdu.edu.cn/showproblem.php?pid=1003#include <iostream> using namespace std; int a[100001]; int main() { int t,n,b,e,rb,maxx,sum,k; cin>>t; k=1; while(t--) { cin>>
原创
发布博客 2015.05.29 ·
217 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

dfs hdu 1016

http://acm.hdu.edu.cn/showproblem.php?pid=1016#include <cstdio> #include <cstring> using namespace std; int prime[40]={0}; int n,count; int ans[21]; int vis[21]; void dfs(int x) { if(count==n&&!pri
原创
发布博客 2015.05.27 ·
235 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

二分图匹配 hdu 1150

http://acm.hdu.edu.cn/showproblem.php?pid=1150#include <iostream> #include <cstring> using namespace std; const int maxx=102; int gra[maxx][maxx]; int cx[maxx];int cy[maxx]; int sy[maxx]; int m,n,ans,k
原创
发布博客 2015.05.27 ·
239 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

数论 hdu 1060 n^n最高位

http://acm.hdu.edu.cn/game/entry/problem/show.php?chapterid=2§ionid=1&problemid=11 对一个数num可写为 num=10^n * a, 即科学计数法,使a的整数部分即为num的最高位数字num^num=10^n + a 这里的n与上面的n不等两边取对数: num*lg(num) = n + lg(a);因为
原创
发布博客 2015.05.27 ·
339 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

dp hdu 1159 最大公共子序列

http://acm.hdu.edu.cn/game/entry/problem/show.php?chapterid=3§ionid=2&problemid=2 dp[i][j]=max(dp[i-1][j],dp[i][j-1]) s1[i]!=s2[j] dp[i][j]=dp[i-1][j-1]+1 s1[i]==s2[j]#include<stdio.h> #includ
原创
发布博客 2015.05.27 ·
231 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

dp hdu 1176

http://acm.hdu.edu.cn/game/entry/problem/show.php?chapterid=3§ionid=2&problemid=8 自底向上 状态转移方程为:dp[i][j]=max(dp[i+1][j-1],dp[i+1][j],dp[i+1][j-1])+pie[i][j]#include<stdio.h> #include<string.h.>
原创
发布博客 2015.05.27 ·
213 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

二分图匹配 hdu 2063

http://acm.hdu.edu.cn/showproblem.php?pid=2063#include <iostream> #include <cstring> using namespace std; const int maxx=502; int gra[maxx][maxx]; int sx[maxx];int sy[maxx]; //记录是否被访问过 int cx[maxx];int
原创
发布博客 2015.05.27 ·
276 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

二分图匹配 hdu 1045

http://acm.hdu.edu.cn/showproblem.php?pid=1045#include <iostream> #include <cstring> using namespace std; const int maxx=102; int cx[maxx];int cy[maxx]; int sx[maxx];int sy[maxx]; char gra[maxx][maxx];
原创
发布博客 2015.05.27 ·
255 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

大数相减

#include <iostream> #include <string> #include <mem.h> using namespace std;int main() { string s1,s2; cin>>s1>>s2; int a[1000]; int b[1000]; memset(a,0,sizeof(a)); memset(b,0,si
原创
发布博客 2015.05.07 ·
318 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

大数相加

A + B Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 251504 Accepted Submission(s): 48449Problem Description I have a very simpl
原创
发布博客 2015.04.28 ·
214 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多