Description 从一个点到达与他距离第 \(k\) 小的点,问从每个点跳 \(m\) 次到达那个点. Sol 队列+倍增. 保持队列里的元素个数为 \(k\) ,从前往后扫不难发现左右端点都是单调的. 求跳 \(m\) 次就是倍增了,滚一下数组. Code ...
分类:
其他好文 时间:
2016-12-23 23:06:40
阅读次数:
219
We use the traversable instance on List to reimplement Promise.all() type functionality. For example we want to conver: Conver array of Task, into Tas ...
分类:
其他好文 时间:
2016-12-21 21:34:06
阅读次数:
121
传送门 Frogger Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 39453 Accepted: 12691 Description Freddy Frog is sitting on a stone in the midd ...
分类:
其他好文 时间:
2016-11-22 02:59:31
阅读次数:
229
A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i ...
分类:
其他好文 时间:
2016-11-04 23:50:00
阅读次数:
225
Problem Description
Once upon a time, in the mystical continent, there is a frog kingdom, ruled by ...
分类:
其他好文 时间:
2016-10-31 22:21:11
阅读次数:
345
A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i ...
分类:
其他好文 时间:
2016-10-28 07:42:06
阅读次数:
175
Mr. Frog’s Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 312 Accepted Submission(s): 21 ...
分类:
其他好文 时间:
2016-10-20 21:46:34
阅读次数:
242
Coconuts Time Limit: 9000/4500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description TanBig, a friend of Mr. Frog, likes eati ...
分类:
其他好文 时间:
2016-10-09 00:14:08
阅读次数:
169
Basic Data Structure Time Limit: 7000/3500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description Mr. Frog learned a basic dat ...
分类:
其他好文 时间:
2016-10-08 02:14:10
阅读次数:
156
题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5925 Problem Description TanBig, a friend of Mr. Frog, likes eating very much, so he always has dreams ...
分类:
其他好文 时间:
2016-10-07 20:42:03
阅读次数:
314