HDU 1166 敌兵布阵(树状数组)
摘要:敌兵布阵 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 107289 Accepted Submission(s): 45092 Problem
阅读全文
posted @
2018-02-25 21:21
蔡军帅
阅读(126)
推荐(0) 编辑
STL算法与树结构模板
摘要:STL算法 STL 算法是一些模板函数,提供了相当多的有用算法和操作,从简单如for_each(遍历)到复杂如stable_sort(稳定排序),头文件是:#include <algorithm>。常用STL 算法库包括:sort快速排序算法、二分查找算法、枚举排列算法等。 1、 sort排序系列
阅读全文
posted @
2018-02-24 13:53
蔡军帅
阅读(185)
推荐(0) 编辑
HDU 2669 Romantic(裸的拓展欧几里得)
摘要:Romantic Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8536 Accepted Submission(s): 3638 Proble
阅读全文
posted @
2018-02-19 22:14
蔡军帅
阅读(296)
推荐(0) 编辑
HDU 2846 Repository(字典树,每个子串建树,*s的使用)
摘要:Repository Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 6444 Accepted Submission(s): 2096 Prob
阅读全文
posted @
2018-02-18 12:40
蔡军帅
阅读(171)
推荐(0) 编辑
HDU 1251 统计难题(字典树)
摘要:统计难题 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 48444 Accepted Submission(s): 17131 Problem
阅读全文
posted @
2018-02-17 23:37
蔡军帅
阅读(178)
推荐(0) 编辑
HDU 1671 Phone List(字典树)
摘要:Phone List Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22697 Accepted Submission(s): 7684 Pro
阅读全文
posted @
2018-02-17 22:46
蔡军帅
阅读(177)
推荐(0) 编辑
HDU 1075 What Are You Talking About
摘要:What Are You Talking About Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 102400/204800 K (Java/Others)Total Submission(s): 25869 Accepted Subm
阅读全文
posted @
2018-02-17 20:49
蔡军帅
阅读(217)
推荐(0) 编辑
HDU 1298 T9(字典树+dfs)
摘要:T9 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3527 Accepted Submission(s): 1318 Problem Desc
阅读全文
posted @
2018-02-16 15:54
蔡军帅
阅读(225)
推荐(0) 编辑
HDU 1800 Flying to the Mars
摘要:Flying to the Mars Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22122 Accepted Submission(s):
阅读全文
posted @
2018-02-16 14:03
蔡军帅
阅读(240)
推荐(0) 编辑
hdu1 247 Hat’s Words(字典树)
摘要:Hat’s Words Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16970 Accepted Submission(s): 6098 Pr
阅读全文
posted @
2018-02-15 22:11
蔡军帅
阅读(139)
推荐(0) 编辑
链表基本操作的实现
摘要:1 #include 2 #include 3 #define LEN sizeof(struct student) 4 5 /*----------------数据定义----------------------*/ 6 7 //定义一个学生信息的结构体,包括学号,姓名和结构体类型的指针 8 struct student 9 { 10 ...
阅读全文
posted @
2018-02-14 14:41
蔡军帅
阅读(253)
推荐(0) 编辑
HDU 1710 Binary Tree Traversals(树的建立,前序中序后序)
摘要:Binary Tree Traversals Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9283 Accepted Submission(s
阅读全文
posted @
2018-02-14 13:51
蔡军帅
阅读(298)
推荐(0) 编辑
HDU 3179 二叉搜索树(树的建立)
摘要:二叉搜索树 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6293 Accepted Submission(s): 2820 Problem D
阅读全文
posted @
2018-02-14 13:01
蔡军帅
阅读(160)
推荐(0) 编辑
poj 3253 Fence Repair (贪心,优先队列)
摘要:Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,00
阅读全文
posted @
2018-02-06 18:33
蔡军帅
阅读(185)
推荐(0) 编辑
HDU 1896 Stones
摘要:Stones Time Limit: 5000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 3405 Accepted Submission(s): 2214 Problem
阅读全文
posted @
2018-02-03 22:59
蔡军帅
阅读(118)
推荐(0) 编辑
HDU 1269 迷宫城堡(向量)(Tarjan模版题)
摘要:迷宫城堡 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19017 Accepted Submission(s): 8328 Problem D
阅读全文
posted @
2018-02-03 22:26
蔡军帅
阅读(154)
推荐(0) 编辑
第一次使用优先队列
摘要:问题 F: 优先队列 题目描述 已知进入优先队列的各结点的优先级(为<20的正整数,该值越小,则表示优先级越高),以及各结点入队列和出队列的操作序列,要求输出各结点的出队列顺序(输出编号)。注意,结点的编号为入队列时的序号,且从1开始计起。 已知进入优先队列的各结点的优先级(为<20的正整数,该值越
阅读全文
posted @
2018-01-21 22:23
蔡军帅
阅读(284)
推荐(0) 编辑