![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDU
Jstyle_AC
我欲成仙,必要坚持
展开
-
HDU - 1010 Tempter of the Bone
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1010#include #include #include using namespace std;/***********************************************************************************************原创 2016-04-13 15:54:41 · 195 阅读 · 0 评论 -
HDU - 2087 剪花布条(Kmp)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2087#include #include #include using namespace std;/**********************************************************************************************原创 2016-05-18 22:14:14 · 305 阅读 · 0 评论 -
HDU - 2203 亲和串(Kmp)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2203#include #include #include #include using namespace std;/*************************************************************************************原创 2016-05-19 00:18:11 · 226 阅读 · 0 评论 -
HDU - 2955 Robberies
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2955#include #include using namespace std;/*********************************************************************************************************原创 2016-04-23 23:27:35 · 189 阅读 · 0 评论 -
HDU - 2126 Buy the souvenirs
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2126#include #include #include using namespace std;/***********************************************************************************************原创 2016-04-23 23:29:02 · 232 阅读 · 0 评论 -
HDU - 1501 Zipper
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1501#include #include using namespace std;/*********************************************************************************************************原创 2016-04-24 23:05:57 · 169 阅读 · 0 评论 -
HDU - 3068 最长回文(manacher)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3068求最长回文串,manacher算法。具体可以看转载的blog,代码如下:#include #include #include #include #include using namespace std;char line[220020],s[220020];int Mp[1原创 2016-05-20 00:00:20 · 243 阅读 · 0 评论 -
HDU - 2571 命运
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2571#include #include #include using namespace std;/***********************************************************************************************原创 2016-04-20 23:07:32 · 184 阅读 · 0 评论 -
hdu - 1556 (Color the ball 线段树)
题目链接:点击打开链接思路:简单的线段树模板,理解了好久。创建+更新+查询。更新只涉及到区间更新次数(+1)即可。查询可以递归查询,累加包含查询结点的树结点(即离散化的区间[l,r])的次数即可。简单的说就是,查询结点所在的区间更新次数的总和。eg:离散化到树结点,若共有4个结点,更新区间[1,3]则更新到区间[1,2]+[3,3].#include #include #inclu原创 2016-07-02 23:31:19 · 200 阅读 · 0 评论 -
HDU 1166 - 敌兵布阵(线段树,单点更新)
A - 敌兵布阵Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1166Appoint description: devtang (2012-08-01)System Crawler (2016-07-原创 2016-07-15 14:53:52 · 184 阅读 · 0 评论 -
NWU CCCC 1017(HDU 1272改编 并查集判断图是否存在环)
Evio与观察小白鼠Time Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 13 Accepted Submission(s) : 3Font: Times New Roman | Verdana | Georgia原创 2016-07-09 16:57:02 · 256 阅读 · 0 评论 -
HDU - 1541 Stars(树状数组)
同学们~ StarsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7966 Accepted Submission(s): 3181Problem DescriptionAst原创 2016-07-30 08:35:16 · 253 阅读 · 0 评论 -
HDU - 1556 Color the ball(树状数组 or 线段树)
Color the ballTime Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16484 Accepted Submission(s): 8201Problem DescriptionN个气球排成一排,从原创 2016-07-30 08:53:59 · 195 阅读 · 0 评论 -
HDU - 5775 Bubble Sort(树状数组)
Bubble SortTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 659 Accepted Submission(s): 393Problem DescriptionP is a permutati原创 2016-07-30 09:07:48 · 357 阅读 · 0 评论 -
HDU - 1269【Tarjan最大强连通分量】
迷宫城堡 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submissi原创 2017-01-15 20:41:21 · 203 阅读 · 0 评论 -
HDU - 1171 Number Sequence(Kmp)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1711#include #include #include #include using namespace std;/*************************************************************************************原创 2016-05-18 22:10:12 · 209 阅读 · 0 评论 -
HDU - 1455 Sticks(深搜+剪枝)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1455说点题外话。这几天再次看搜索,找到一种新的理解方式,果然处理问题方便多了。搜索的本质:利用递归实现很多个 for 循环,在每一次循环中不断筛选判断。常见的搜索:1,枚举搜索 (HDU 2533 - 八皇后问题,UVa 524 - 素数环,UVa 129 - Krypton Facto原创 2016-05-17 23:56:41 · 540 阅读 · 0 评论 -
HDU - 1015 Safecracker
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1015#include #include #include #include #define res(v,w,x,y,z) v-w*w+x*x*x-y*y*y*y+z*z*z*z*zusing namespace std;/****************************原创 2016-04-14 22:37:25 · 163 阅读 · 0 评论 -
HDU - 2553 N皇后问题
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2553#include using namespace std;/***************************************************************************************************************原创 2016-04-14 22:50:41 · 225 阅读 · 0 评论 -
HDU - 1016 Prime Ring Problem
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1016#include #include using namespace std;/*********************************************************************************************************原创 2016-04-15 14:58:23 · 170 阅读 · 0 评论 -
HDU - 2544 最短路(Dijkstra)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2544#include #include #define MAX 10000005#define N 10005using namespace std;/********************************************************************原创 2016-04-30 18:19:36 · 241 阅读 · 0 评论 -
HDU - 3790 最短路径问题(Dijkstra)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3790#include #include #include #define MAX 10000005#define N 1005using namespace std;/***********************************************************原创 2016-04-30 18:26:13 · 237 阅读 · 0 评论 -
HDU - 1874 畅通工程续(Dijkstra)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1874#include #include #define N 205#define MAX 100000005using namespace std;/*********************************************************************原创 2016-04-30 18:30:22 · 217 阅读 · 0 评论 -
HDU - 1548 A strange lift(Dijkstra)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1548#include #include #include #define MAX 0x3f3f3f3fusing namespace std;/************************************************************************原创 2016-04-30 18:23:21 · 195 阅读 · 0 评论 -
HDU - 1233 还是畅通工程(Kruskal - MST)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1233#include #include #include #include #define MAXN 105#define MAXM 10000using namespace std;/*************************************************原创 2016-05-25 23:30:09 · 197 阅读 · 0 评论 -
HDU - 2084 数塔
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2084#include #include using namespace std;/*********************************************************************************************************原创 2016-04-20 22:14:17 · 199 阅读 · 0 评论 -
HDU - 1087 Super Jumping! Jumping! Jumping!
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1087#include using namespace std;/****************************************************************************************************************原创 2016-04-20 23:04:42 · 153 阅读 · 0 评论 -
HDU - 1203 I NEED A OFFER!
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1203#include #include #include using namespace std;/***********************************************************************************************原创 2016-04-20 23:06:10 · 132 阅读 · 0 评论 -
HDU - 1159 Common Subsequence
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1159#include #include using namespace std;/*********************************************************************************************************原创 2016-04-21 23:19:34 · 179 阅读 · 0 评论 -
HDU - 2602 Bone Collector
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2602#include #include using namespace std;/*********************************************************************************************************原创 2016-04-21 23:24:00 · 168 阅读 · 0 评论 -
HDU - 2546 饭卡
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2546#include #include #include using namespace std;/***********************************************************************************************原创 2016-04-21 23:28:30 · 168 阅读 · 0 评论 -
HDU - 5269【SBBBBBB Trie】
ZYB loves Xor ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 979 Accepted Submission(s): 436Problem DescriptionMemphis loves xo原创 2017-01-18 22:25:03 · 1091 阅读 · 0 评论