http://acm.hdu.edu.cn/showproblem.php?pid=4004这道题讲的是青蛙在限定步骤之内跳过河,所以判断最小的每次跳的步长。思路理解:找到每块石头之间的最大值为石头最小步长,最大值当然就是河宽了。所以剩下了就是用二分枚举了。//我烦的一个错误就是sort函数是从0-...
分类:
其他好文 时间:
2015-05-25 18:32:37
阅读次数:
113
戳这里:HDU 4004//思路:二分经典入门题...贪心判方案是否可行 1 #include "bits/stdc++.h" 2 using namespace std; 3 int L, n, m; 4 int pos[500010], dis[500010]; 5 6 bool Cant(i....
分类:
其他好文 时间:
2015-05-04 01:06:17
阅读次数:
180
FroggerTime Limit:1000MSMemory Limit:65536KTotal Submissions:28112Accepted:9136DescriptionFreddy Frog is sitting on a stone in the middle of a lake. S...
分类:
其他好文 时间:
2015-04-30 00:41:20
阅读次数:
161
/**
* 书本:《Thinking In Java》
* 功能:继承与清理
* 文件:Frog.java
* 时间:2015年4月1日19:38:22
* 作者:cutter_point
*/
package Lesson8Polymorphism;
import static net.mindview.util.Print.*;
class Characteristic
{
privat...
分类:
编程语言 时间:
2015-04-16 15:45:38
阅读次数:
136
The Frog's GamesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 4218Accepted Submission(s): 2051Pr...
分类:
其他好文 时间:
2015-04-08 19:29:17
阅读次数:
160
Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to ...
分类:
其他好文 时间:
2015-03-15 00:37:42
阅读次数:
154
DescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visi...
分类:
其他好文 时间:
2015-03-07 15:32:03
阅读次数:
166
传送门:http://poj.org/problem?id=2253
Frogger
Description
Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to v...
分类:
其他好文 时间:
2015-02-13 14:53:14
阅读次数:
208
DescriptionIn Korea, the naughtiness of the cheonggaeguri, a small frog, is legendary. This is a well-deserved reputation, because the frogs jump thro...
分类:
其他好文 时间:
2015-02-04 00:29:23
阅读次数:
195
Leap Frog
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768
K (Java/Others)
...
分类:
其他好文 时间:
2015-02-02 14:11:05
阅读次数:
144