码迷,mamicode.com
首页 >  
搜索关键字:并查集 hdu    ( 34854个结果
【HDOJ】1325 Is It A Tree?
并查集。需要考虑入度。 1 #include 2 #include 3 4 #define MAXNUM 10005 5 6 int bin[MAXNUM]; 7 int degree[MAXNUM]; 8 int nums[MAXNUM]; 9 10 int find(int x) {11...
分类:其他好文   时间:2014-06-02 21:31:31    阅读次数:219
HDU - 4814 Golden Radio Base (长春赛区B题)
Description Golden ratio base (GRB) is a non-integer positional numeral system that uses the golden ratio (the irrational number (1+√5)/2 ≈ 1.61803399 symbolized by the Greek letter φ) as its base....
分类:其他好文   时间:2014-06-01 15:38:24    阅读次数:252
hdu 1011 Starship Troopers (依赖背包 树形dp)
题目:         链接:...
分类:其他好文   时间:2014-06-01 14:10:02    阅读次数:284
OJ帐号保存
TOJ 614173971 HDU 宇智波佐助 POJ shiai ZOJ henyumen UVa henyumen Light OJ HENYUMEN...
分类:其他好文   时间:2014-06-01 13:59:09    阅读次数:210
HDU 4839 The Game of Coins 概率题。(母函数
The Game of Coins mark: #include"cstdio" #include"iostream" #include"queue" #include"algorithm" #include"set" #include"queue" #include"cmath" #include"string.h" #include"vector...
分类:其他好文   时间:2014-06-01 13:58:31    阅读次数:196
hdu 3449 Consumer (依赖01背包)
题目:         链接:点击打开链接 题意: 思路:         dp[i][j]表示前i个箱子装j钱的材料能够得到的最大价值。 代码: #include #include #include using namespace std; #define MAXN 100010 int dp[55][MAXN]; int main() { //freopen("inpu...
分类:其他好文   时间:2014-06-01 13:57:14    阅读次数:270
hdu 1561 The more, The Better (依赖背包 树形dp)
题目:         链接:点击打开链接 题意:         很明显的依赖背包。 思路: 代码:...
分类:其他好文   时间:2014-06-01 12:56:54    阅读次数:313
hdu 2089 不要62
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2089题意:给出一个区间[l,r],求满足一个数的数位上没有连着62这个数字串的条件的个数。解法:数位DP的入门题。 1 #include 2 #include 3 #include 4 #include...
分类:其他好文   时间:2014-06-01 12:27:14    阅读次数:229
HDU 4503
湫湫系列故事——植树节Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1025 Accepted Submission(s): 604P...
分类:其他好文   时间:2014-06-01 12:09:46    阅读次数:143
hdu 4400 离散化+二分+BFS(暴搜剪枝还超时的时候可以借鉴一下)
MinesTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1110Accepted Submission(s): 280Problem Descr...
分类:其他好文   时间:2014-06-01 11:38:48    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!