1.定义罪犯Criminal类,height(身高)/weight(体重)/blood(血型)/home(籍贯)属性。 重写hashcode和equals,使用四个属性的组合进行实现。 创建HashSet集合,里面存放20个Criminal对象,其中O型血2人,A型血3人,B型血4人,AB型血1人,其余血型不详。 注意:hashcode()方法实现时..
分类:
编程语言 时间:
2016-03-19 06:33:39
阅读次数:
199
Twelves Monkeys
Time Limit: 5 Seconds Memory Limit: 32768 KB
James Cole is a convicted criminal living beneath a post-apocalyptic Philadelphia. Many years ago, the Earth's surface had been ...
分类:
其他好文 时间:
2015-07-28 10:54:16
阅读次数:
149
141 - ZOJ Monthly, July 2015 - H
Twelves Monkeys
Time Limit: 5 Seconds Memory Limit: 32768 KB
James Cole is a convicted criminal living beneath a post-apocalyptic Philadelphia. Many year...
分类:
其他好文 时间:
2015-07-26 22:39:13
阅读次数:
165