码迷,mamicode.com
首页 >  
搜索关键字:hdoj    ( 2498个结果)
[hdoj]3006//位运算+枚举
题意:给出n个集合,问这些集合能组合成几种不同的集合。思路:枚举+状态压缩。由于1using namespace std;int main(){ int n, m, k, w, i, j; int ans, val[105]; while(cin >> n >> m){ for(i = 0; i >...
分类:其他好文   时间:2015-04-18 23:32:21    阅读次数:183
hdoj 1004 Let the Balloon Rise(模拟 || 字典树)
Let the Balloon Rise http://acm.hdu.edu.cn/showproblem.php?pid=1004 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 84401    Accepted Subm...
分类:其他好文   时间:2015-04-18 11:37:16    阅读次数:125
hdoj 1251 统计难题(经典字典树)
Let the Balloon Rise Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 84414    Accepted Submission(s): 31834 Problem Descriptio...
分类:其他好文   时间:2015-04-18 11:34:20    阅读次数:127
hdoj-1247-Hat’s Words-字典树
友情题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1247 #include #include #include #include using namespace std; const int N=30; const int MAX=50005; char word[MAX][30]; struct node { bool temp; no...
分类:其他好文   时间:2015-04-18 08:52:58    阅读次数:148
HDOJ 题目2586 How far away ?(LCA)
How far away ? Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7090    Accepted Submission(s): 2578 Problem Description There are n hou...
分类:其他好文   时间:2015-04-17 22:26:19    阅读次数:156
Hdoj 1213 How Many Tables 【并查集】
How Many Tables Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 16590 Accepted Submission(s): 8117Problem DescriptionToday is Ignatius’ bir...
分类:其他好文   时间:2015-04-17 22:20:32    阅读次数:179
Hdoj 4027 Can you answer these queries? 【线段树】
Can you answer these queries? Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 9598 Accepted Submission(s): 2202Problem DescriptionA lot of...
分类:其他好文   时间:2015-04-17 20:31:24    阅读次数:140
HDOJ 3948 The Number of Palindromes 回文串自动机
看上去像是回文串自动机的模板题,就来了一发 The Number of Palindromes Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1992    Accepted Submission(s): 694...
分类:其他好文   时间:2015-04-17 11:26:22    阅读次数:160
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!