题目传送门 1 /* 2 二分搜索:搜索安排最近牛的距离不小于d 3 */ 4 #include 5 #include 6 #include 7 using namespace std; 8 9 const int MAXN = 1e5 + 10;10 const int INF ...
分类:
其他好文 时间:
2015-07-25 19:44:02
阅读次数:
122
??DescriptionKeeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an ...
分类:
其他好文 时间:
2015-07-25 18:10:14
阅读次数:
102
River Hopscotch
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 8975
Accepted: 3859
Description
Every year the cows hold an event featuring a peculiar vers...
分类:
其他好文 时间:
2015-07-25 15:16:55
阅读次数:
75
Language:
Default
Round Numbers
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 10233
Accepted: 3734
Description
The cows, as you know, have no fingers...
分类:
其他好文 时间:
2015-07-24 18:34:45
阅读次数:
105
Aggressive cows
题目链接:http://poj.org/problem?id=2456
题意:有N个位置,(2
分析:显然又是一个求最大化最小值的问题,很容易找到这个题的单调性,设这个最大可能的最小距离为Ans,Ans∈(0,(Pos[N-1]-Pos[0])/(C-1) );首先对N个位置进行排序,然后在区间(0,(Pos[N-1]-Pos[0])/(C-1) )二分...
分类:
其他好文 时间:
2015-07-24 16:15:11
阅读次数:
124
Rebuilding Roads
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 9957
Accepted: 4537
Description
The cows have reconstructed Farmer John's farm, with its N...
分类:
其他好文 时间:
2015-07-24 14:20:58
阅读次数:
103
DescriptionFor the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a ga...
分类:
其他好文 时间:
2015-07-23 21:30:56
阅读次数:
113
DescriptionFJ's cows really hate getting wet so much that the mere thought of getting caught in the rain makes them shake in their hooves. They have d...
分类:
其他好文 时间:
2015-07-23 06:39:06
阅读次数:
130
Round Numbers
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 10223
Accepted: 3726
Description
The cows, as you know, have no fingers or thumbs and thus ar...
分类:
其他好文 时间:
2015-07-22 18:53:30
阅读次数:
128
Cow Sorting
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 6393
Accepted: 2476
Description
Farmer John's N (1 ≤ N ≤ 10,000) cows are lined up to be milked...
分类:
其他好文 时间:
2015-07-21 10:45:55
阅读次数:
131