题目:http://www.lydsy.com/JudgeOnline/problem.php?id=2093题解:Orz这题好神! 首先求一位数轴上距离每个点第k近的点。 神做法:维护一个l,r表示a[l--r]是距离i最近的k个点,当i++时,只有可能l++,r++或不改变!!! ...
分类:
其他好文 时间:
2015-02-01 13:23:34
阅读次数:
148
var name = 'frog'function hello(){ alert(name); // undefined var name = 'bbc';}在javascript中,函数是可以形成一个独立作用域的,变量的查找,首先是就近原则,先看自己有没有,自己没有,就会自动跑到外层去...
分类:
Web程序 时间:
2015-01-23 10:46:26
阅读次数:
171
The Frog's Games
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)
Total Submission(s): 3980 Accepted Submission(s): 1931
Problem Description
The annual Ga...
分类:
其他好文 时间:
2015-01-20 22:23:48
阅读次数:
223
Frogger
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 27020
Accepted: 8797
Description
Freddy Frog is sitting on a stone in the middle of a lake. Sud...
分类:
编程语言 时间:
2015-01-16 16:49:44
阅读次数:
208
题目链接:poj.org/problem?id=2253题目大意:Freddy Frog 坐在湖中的一个石头上, 突然的他注意到Fiona Frog 坐在另一个石头上,Freddy Frog 要去拜访Fiona Frog , 但是水很脏,而且有游客的防晒霜漂上面, 为了避免游泳过去他只能跳过去。不幸...
分类:
其他好文 时间:
2014-12-11 17:10:25
阅读次数:
191
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4004The annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. O...
分类:
其他好文 时间:
2014-11-27 21:44:32
阅读次数:
201
河的长度为L, 有n个石头,最多跳m次,求青蛙最少至少能够跳多远的最小值。
二分,去年学过,好像也写过,今年还是不会,惭愧。
#include
#include
#include
#include
#include
#include
using namespace std;
int a[500005],b[500005];
int main()
{
int i,L,n,m;...
分类:
其他好文 时间:
2014-11-13 09:24:16
阅读次数:
188
FroggerTime Limit:1000MSMemory Limit:65536KTotal Submissions:26519Accepted:8633DescriptionFreddy Frog is sitting on a stone in the middle of a lake. S...
分类:
其他好文 时间:
2014-11-02 22:11:44
阅读次数:
228
来自:http://blog.csdn.net/crazy_frog/article/details/7705442方法一:绑定[csharp]view plaincopyenumTestEnum{zero=0,one=1,two=2}ComboBoxcbo=newComboBox();cbo.Da...
Problem Description
Once upon a time, there is a little frog called Matt. One day, he came to a river.
The river could be considered as an axis.Matt is standing on the left bank now (at position...
分类:
其他好文 时间:
2014-10-30 21:03:53
阅读次数:
147