#include#includeusing namespace std;int n,a[5001],b[5001],en;int main(){ scanf("%d",&n); for(int i=1;i<=n;++i) scanf("%d",&a[i]); for(in...
分类:
其他好文 时间:
2015-06-24 10:32:54
阅读次数:
101
Description
Farmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dimensional number line) in his field is particularly good.
...
分类:
编程语言 时间:
2015-06-23 21:41:15
阅读次数:
155
Sightseeing CowsTime Limit:1000MSMemory Limit:65536KTotal Submissions:8331Accepted:2791DescriptionFarmer John has decided to reward his cows for their...
分类:
其他好文 时间:
2015-06-22 14:52:52
阅读次数:
93
最小最大...又是经典的二分答案做法..--------------------------------------------------------------------------#include#include#include#include#define rep( i , n ) for...
分类:
其他好文 时间:
2015-06-21 22:23:04
阅读次数:
147
题意:给出n头牛的s,e 如果有两头牛,现在si = ej那么称牛i比牛j强壮 然后问每头牛都有几头牛比它强壮先按照s从小到大排序,然后用e来当做树状数组里面那个a数组,对于每头牛求出前面比他大的e有多少个还有就是注意有两头牛的s和e相等的情况,就只需要更新值, 1 #include 2 #in.....
分类:
编程语言 时间:
2015-06-21 19:45:55
阅读次数:
119
Description
Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy corn for the cows on a number of squares...
分类:
其他好文 时间:
2015-06-21 14:33:04
阅读次数:
155
Description
"Fat and docile, big and dumb, they look so stupid, they aren't much
fun..."
- Cows with Guns by Dana Lyons
The cows want to prove to the public that they are both smart and fun....
分类:
其他好文 时间:
2015-06-20 17:14:26
阅读次数:
144
Til the Cows Come Home
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 33607
Accepted: 11383
Description
Bessie is out in the field and wants to get back t...
分类:
编程语言 时间:
2015-06-19 16:55:12
阅读次数:
132
DiningTime Limit:2000MSMemory Limit:65536KTotal Submissions:10768Accepted:4938DescriptionCows are such finicky eaters. Each cow has a preference for c...
分类:
编程语言 时间:
2015-06-15 00:14:03
阅读次数:
231
树形dp..水------------------------------------------------------------------------#include#include#include#include#define rep( i , n ) for( int i = 0 ; i...
分类:
其他好文 时间:
2015-06-14 21:24:19
阅读次数:
175