Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s...
分类:
其他好文 时间:
2015-12-10 18:37:43
阅读次数:
195
Cow ExhibitionTime Limit:1000MSMemory Limit:65536KTotal Submissions:10882Accepted:4309Description"Fat and docile, big and dumb, they look so stupid, t...
分类:
其他好文 时间:
2015-12-08 22:25:42
阅读次数:
183
DescriptionIt's election time. The farm is partitioned into a 5x5 grid of cow locations, each of which holds either a Holstein ('H') or Jersey ('J') c...
分类:
其他好文 时间:
2015-12-01 21:20:49
阅读次数:
421
DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a pointN(0 ≤N≤ 100,000) on...
分类:
其他好文 时间:
2015-11-27 23:34:49
阅读次数:
238
题目传送门 1 2题意:有向图,所有点先走到x点,在从x点返回,问其中最大的某点最短路程分析:对图正反都跑一次最短路,开两个数组记录x到其余点的距离,这样就能求出来的最短路以及回去的最短路.POJ 3268//#include #include #include #include #include ...
分类:
其他好文 时间:
2015-11-27 21:55:04
阅读次数:
253
DescriptionThe N (2 #includeusing namespace std;struct na{ int x,y,ne; na(){ ne=0; }};int n,m,l[10001],r[10001],x,y,num=0,ans=0,top=0,...
分类:
其他好文 时间:
2015-11-26 23:00:47
阅读次数:
203
DescriptionFJ打算带他的N(1 #includeusing namespace std;int n,l=1,r;char c[30001][1];int main(){ scanf("%d",&n); for (int i=1;i<=n;i++){ scanf(...
分类:
其他好文 时间:
2015-11-24 20:35:11
阅读次数:
147
题意:有n个奶牛,每个奶牛有一个smart值和一个fun值,可能为正也可能为负,要求选出n只奶牛使他们smart值的和s与fun值得和f都非负,且s+f值要求最大。分析: 一道很好的背包DP题,我们将smart值当作物品的体积,将fun值当作物品的价值,每个物品只能取一次,我们求对于每个背包体积求恰...
分类:
其他好文 时间:
2015-11-22 18:49:28
阅读次数:
122
Catch That CowTime Limit:2000MSMemory Limit:65536KTotal Submissions:64176Accepted:20156DescriptionFarmer John has been informed of the location of a f...
分类:
其他好文 时间:
2015-11-16 19:16:12
阅读次数:
193
DiningTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 11844Accepted: 5444DescriptionCows are such finicky eaters. Each cow has a preference f...
分类:
其他好文 时间:
2015-11-04 21:07:29
阅读次数:
188