会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晴朗
浮躁的人容易问:我到底该学什么;----别问,学就对了; 浮躁的人容易问:c++有钱途吗;----建议你去抢银行; 浮躁的人容易说:我要中文版!我英文不行!----不行?学 呀! 浮躁的人分两种:只观望而不学的人;只学而不坚持的人; 浮躁的人永远不是一个高手。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
38
39
40
41
42
43
44
45
46
···
59
下一页
2014年3月17日
哈夫曼树也叫最优二叉树
摘要: http://blog.chinaunix.net/uid-26833883-id-3158234.html
阅读全文
posted @ 2014-03-17 19:20 HYDhyd
阅读(217)
评论(0)
推荐(0)
2014年3月12日
zoj 3693
摘要: #include#include//进位问题如3.985 应该进位3.99int main() { int n,k,i;double w,s;char str[30];while(scanf("%d%lf%d",&n,&w,&k)!=EOF) { i=(n+2)/k; n=n+2-i; s=...
阅读全文
posted @ 2014-03-12 14:51 HYDhyd
阅读(150)
评论(0)
推荐(0)
fzu 2129
摘要: 第i个元素a未出现过:dp[i] = (2 * dp[i-1] + 1) % mod;visit[a]代表a最后出现的位置第i个元素a出现过:dp[i] = (2 * dp[i-1] - dp[visit[a]-1]) % mod;(注意判负)例abb第一个b : a b ab第二个b :a b...
阅读全文
posted @ 2014-03-12 14:29 HYDhyd
阅读(143)
评论(0)
推荐(0)
2014年3月11日
fzu 2124
摘要: #include#include#include#include#include#includeusing namespace std;#define N 30char map[N][N];struct node {double t;int x,y,f;friend bool operatorb.t...
阅读全文
posted @ 2014-03-11 18:25 HYDhyd
阅读(122)
评论(0)
推荐(0)
fzu 2128
摘要: 第一组实例aaaa2aaaa第二组a1c第三组abcdef2abcdbcd第四组abcdef2abcdbcde第五组aaaa2aaa第六组lgcstraightlalongahisnstreet5strlongtreebigintegerellipse#include#include//考虑了很多实...
阅读全文
posted @ 2014-03-11 16:15 HYDhyd
阅读(182)
评论(0)
推荐(0)
fzu 2125
摘要: #include#includeint total(int x,int m) {int sum=0;while(x>0) {sum+=x%m;x/=m;}return sum;}int main() { __int64 n,suma,i; int m,t,ans,j,h;scanf("%d",&t)...
阅读全文
posted @ 2014-03-11 15:09 HYDhyd
阅读(104)
评论(0)
推荐(0)
fzu 2122
摘要: #include#include#define N 51000char s1[200],s2[200],s[N];int main() { int n,m,len,i,j,f;char ch,chr;while(scanf("%s",s1)!=EOF) {getchar();gets(s2);ge...
阅读全文
posted @ 2014-03-11 14:45 HYDhyd
阅读(80)
评论(0)
推荐(0)
hdu 4707 bellman
摘要: 最短路的优先队列做法:#include#include#include#define N 100010#define inf 0x3fffffffusing namespace std;int first[N],next[N],u[N],v[N],w[N],d[N];int main(){int t...
阅读全文
posted @ 2014-03-11 13:30 HYDhyd
阅读(120)
评论(0)
推荐(0)
2014年3月9日
sicily 10330. Cutting Sausages
摘要: #includeint main() { int n,m,j,k; while(scanf("%d%d",&n,&m)!=EOF) {j=0;while(n%m!=0) {//将剩余的几分之几等的香肠看成n根香肠继续分给没有香肠的人if(n>m)//每个人分n/m根香肠后剩余的香肠继续分n=n%m;...
阅读全文
posted @ 2014-03-09 19:55 HYDhyd
阅读(120)
评论(0)
推荐(0)
博弈
摘要: http://www.wutianqi.com/?p=1081
阅读全文
posted @ 2014-03-09 12:03 HYDhyd
阅读(121)
评论(0)
推荐(0)
上一页
1
···
38
39
40
41
42
43
44
45
46
···
59
下一页
公告