本月博客排行
-
第1名
wy_19921005 -
第2名
mft8899 -
第3名
benladeng5225 - duanfei
- Anmin
- wddpwzzhao123
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
wy_19921005 - benladeng5225
- vipbooks
- kaizi1992
- tanling8334
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- wallimn
- e_e
- jh108020
- ganxueyun
- Xeden
- xyuma
- wangchen.ily
- zhanjia
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- xpenxpen
- 青否云后端云
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- javashop
- lzyfn123
- sunj
- yeluowuhen
- ajinn
- lerf
- lemonhandsome
- chenqisdfx
- xiaoxinye
- lyndon.lin
- flashsing123
- bosschen
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
- hudiemeng870329
- mft8899
最新文章列表
【floyd神器】HDU 1217 Arbitrage
http://acm.hdu.edu.cn/showproblem.php?pid=1217
题意:给出各种钱之间的兑换机制,求不断兑换后是否可以产生利润?
对于第一个案例:start with 1 US dollar and buy 0.5 ...
杭电 hdu 2717 Catch That Cow
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://acm.hdu.edu.cn ...
杭电 hdu 1312 Red and Black
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://acm.hdu.edu.cn ...
杭电 hdu 1241 Oil Deposits
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://acm.hdu.edu.cn ...
hdu 1059 Dividing(二进制转化优化)
Dividing
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5887 Accepted Submission(s): 1594
Problem Description
Marsha and Bill own a collec ...
hdu 2191 珍惜现在,感恩生活(我的第一个多重背包)
悼念512汶川大地震遇难同胞——珍惜现在,感恩生活
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4215 Accepted Submission(s): 1690
Problem Description
急!灾区的食物依 ...
hdu 1114 Piggy-Bank(我的第一个完全背包)
Piggy-Bank
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2940 Accepted Submission(s): 1452
Problem Description
Before ACM can do anything ...
hdu 2602 Bone Collector(我的第一个01背包)
Bone Collector
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7904 Accepted Submission(s): 2949
Problem Description
Many years ago , in Te ...
【次小生成树】POJ 1679 The Unique MST
http://poj.org/problem?id=1679
题意:问最小生成树是否唯一
思路:
用Kruskal先求最小生成树,结果即为min,把所用到的边记录下来(这里是记录的对应的下表),然后枚举这些边,
每次去掉一个边再求一次最小生成树,结果为tmin,如果能构成最小生成树tmin==min,则说明最小生成树不唯一
Sample Input
2
3 3
1 2 1
2 3 2
3 1 ...
【拓扑排序】HDU 2647 Reward【2012/3/25更新】
http://acm.hdu.edu.cn/showproblem.php?pid=2647
题意:先给出人数n和关系数m,再给出工人之间的工资大小关系,例如给出a b表示a>b,求老板至少要给多少工资【注:工人至少有888元的工资】
Sample Input
2 1
1 2
2 2
1 2
2 1
6 5
2 4
3 6
3 5
1 2
1 3
4 3
1 2
3 4
2 3
Samp ...
【欧拉函数+容斥原理】HDU 1695 GCD
http://acm.hdu.edu.cn/showproblem.php?pid=1695
题意:求[a,b]和[c,d]中分别取一个数,问取到的两个数的gcd=k的对数!!其中(2,3)跟(3,2)这2种类型只算一种,视为重复
Sample Input
2
1 3 1 5 1
1 11014 1 14409 9
Sample Output
Case 1: 9
Case 2: 736427 ...
hdu 1023 Train Problem II(大数卡特兰数-出栈次序问题)
Train Problem II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2111 Accepted Submission(s): 1238
Problem Description
As we all kn ...
hdu 2067 小兔的棋盘(卡特兰数)
小兔的棋盘
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2323 Accepted Submission(s): 1360
Problem Description
小兔的叔叔从外面旅游回来给她带来了一个礼物,小兔高兴地跑回自己 ...
hdu 1496 Equations(非常巧妙的hash)
Equations
Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1729 Accepted Submission(s): 662
Problem Description
Consider equations h ...
hdu 1425 sort(最简单的hash)
sort
Time Limit: 6000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12363 Accepted Submission(s): 3366
Problem Description
给你n个整数,请按从大到小的顺序输出其中前m大的数。
...
【拓扑排序】HDU 1285 确定比赛名次
http://acm.hdu.edu.cn/showproblem.php?pid=1285
Problem Description
有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知道每场比赛的结果,即P1赢P2,用P1,P2表示,排名时P1在P2 ...
【超级hash大法】HDU 1496 Equations
http://acm.hdu.edu.cn/showproblem.php?pid=1496
题意:求有多少个解!!
Problem Description
Consider equations having the following form:
a*x1^2+b*x2^2+c*x3^2+d*x4^2=0
a, b, c, d are integers from the interval ...
hdu 3584 Cube(三维树状数组)
Cube
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 660 Accepted Submission(s): 309
Problem Description
Given an N*N*N cube A, whose elem ...
hdu 1016 Prime Ring Problem
简单的搜索题,用递归
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://ac ...
hdu 2199 Can you solve this equation?
Can you solve this equation?
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1226 Accepted Submission(s): 625
Problem Description
Now,given ...