[本文是自己学习所做笔记,欢迎转载,但请注明出处:http://blog.csdn.net/jesson20121020]
继续上节内容,还是以对各种类型的数组进行排序为例,这时,我们考虑复杂一点,如果,我们不再按照Cat的身高进行排序,我们想以Cat的年龄作为排序的依据,再如,我们不再按Dog的food进行排序,而是以Dog的体重作为依据进行排序,该怎么办呢,当然了,我们可以改动Cat...
分类:
编程语言 时间:
2014-12-14 00:46:52
阅读次数:
180
Description
FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.
The warehouse has N rooms. The i-th room contains J...
分类:
其他好文 时间:
2014-12-09 12:16:19
阅读次数:
173
这题看别人的。就是那么诚实。http://www.cnblogs.com/zhyfzy/p/4117481.htmlB. QueueDuring the lunch break allnBerland State University students lined up in the food co...
分类:
其他好文 时间:
2014-11-24 20:44:26
阅读次数:
225
Problem CChopsticksInput:Standard InputOutput:Standard OutputIn China, people use a pair of chopsticks to get food on the table, but Mr. L is a bit di...
分类:
其他好文 时间:
2014-11-19 12:01:32
阅读次数:
210
Food Delivery
Time Limit: 2 Seconds Memory Limit: 65536 KB
When we are focusing on solving problems, we usually prefer to stay in front of computers rather than go out for lunch. At thi...
分类:
其他好文 时间:
2014-11-17 22:57:23
阅读次数:
529
Problem DescriptionAlthough winter is far away, squirrels have to work day and night to save beans. They need plenty of food to get through those long...
分类:
其他好文 时间:
2014-11-16 17:09:54
阅读次数:
139
Fast FoodTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2173Accepted Submission(s): 930Problem De...
分类:
其他好文 时间:
2014-11-12 19:42:24
阅读次数:
221
Serving order of food courses(上菜顺序)1. Appetizer(starter)2. Main Course3. DessertStyle of cooking1. fry 2.steam 3.stew(炖,煨;) 4.roast(烤) 5.boil 6.B...
分类:
其他好文 时间:
2014-11-08 16:31:09
阅读次数:
183
n个人,f种食物,d种饮料,各有一定数量,每个人对每种食物和饮料都有自己的喜好,必须要同时满足Y。
问至多能满足多少个人。
添加源点s,汇点t。
s到每种食物建边,边权为该类食物的数量。
根据每个人的喜好,将食物到人、人到饮料建边,边权为1。
每个人只能算满足一次,所以把人拆点,自己到自己连边,边权为1.
最后,每种饮料到t建边,边权为该类饮料的数量。
#in...
分类:
其他好文 时间:
2014-11-03 22:39:38
阅读次数:
272
Food Delivery Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu DescriptionWhen we are focusing on solving problems, we usually prefe...
分类:
其他好文 时间:
2014-11-02 20:49:56
阅读次数:
124