2016年5月26日
摘要:
Keywords Search Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 50451 Accepted Submission(s): 1
阅读全文
posted @ 2016-05-26 23:15
Beserious
阅读(203)
推荐(0)
摘要:
C. Vasya and String time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output High school student V
阅读全文
posted @ 2016-05-26 16:42
Beserious
阅读(191)
推荐(0)
2016年5月25日
摘要:
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple
阅读全文
posted @ 2016-05-25 10:45
Beserious
阅读(135)
推荐(0)
2016年5月24日
摘要:
以hdu1392为例。 hdu1392要求找到给定点的凸包,并求出凸包周长。由凸包的定义可以知道这个周长是包围这些点的最小周长。 当点数少于3时根据题目进行讨论。
阅读全文
posted @ 2016-05-24 14:59
Beserious
阅读(246)
推荐(0)
2016年5月17日
摘要:
Problem C Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 232 Accepted Submission(s): 82 Proble
阅读全文
posted @ 2016-05-17 20:24
Beserious
阅读(276)
推荐(0)
2016年5月15日
摘要:
2016年团体程序设计天梯赛-模拟赛 给定中序遍历和后序遍历求前序遍历。给前序遍历和中序遍历求后序遍历这样类型的题目,可以先构造成一颗二叉树,然后。。。就好办了 给定中序遍历和后序遍历求前序遍历。给前序遍历和中序遍历求后序遍历这样类型的题目,可以先构造成一颗二叉树,然后。。。就好办了 给定中序遍历和
阅读全文
posted @ 2016-05-15 20:30
Beserious
阅读(1417)
推荐(0)
2016年5月12日
摘要:
C. Recycling Bottles time limit per test 2 seconds time limit per test memory limit per test 256 megabytes memory limit per test input standard input
阅读全文
posted @ 2016-05-12 21:01
Beserious
阅读(325)
推荐(0)
2016年5月10日
摘要:
题目大意: 在非叶子节点上安装最少的服务器使得,每个叶子节点到服务器的距离不超过k。 贪心+图上的dfs。 先从深度最大的叶子节点开始找。找到父节点后再用这个父节点进行扩充。
阅读全文
posted @ 2016-05-10 23:39
Beserious
阅读(233)
推荐(0)
2016年4月24日
摘要:
易彰彪最近有点奇怪,一向爱打游戏他最近居然盯着一张全是大小写字母的表在看,好像在找什么东西。他说,这是他女神给他的一张表,他需要回答女神的问题——在忽略大小写(即大写字母和小写字母视为同一字母)的情况下,是否能在表中找到某一连续的字符串(第 ii 行的尾部和第 i + 1i+1 行的头部视为相连)。
阅读全文
posted @ 2016-04-24 17:53
Beserious
阅读(419)
推荐(0)
摘要:
There are NN children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following r
阅读全文
posted @ 2016-04-24 17:33
Beserious
阅读(364)
推荐(0)