Bastile

所属分类:游戏
开发工具:Visual C++
文件大小:1KB
下载次数:2
上传日期:2007-05-29 16:27:18
上 传 者swg925
说明:  XC的儿子小XC最喜欢玩的游戏用积木垒漂亮的城堡。城堡是用一些立方体的积木垒成的,城堡的每一层是一块积木。小XC是一个比他爸爸XC还聪明的孩子,他发现垒城堡的时候,如果下面的积木比上面的积木大,那么城堡便不容易倒。所以他在垒城堡的时候总是遵循这样的规则。小XC想把自己垒的城堡送给幼儿园里漂亮的女孩子们,这样可以增加他的好感度。为了公平起见,他决定把送给每个女孩子一样高的城堡,这样可以避免女孩子们为了获得更漂亮的城堡而引起争执。可是他发现自己在垒城堡的时候并没有预先考虑到这一点。所以他现在要改造城堡。由于他没有多余的积木了,他灵机一动,想出了一个巧妙的改造方案。他决定从每一个城堡中挪去一些积木,使得最终每座城堡都一样高。为了使他的城堡更雄伟,他觉得应该使最后的城堡都尽可能的高。任务:请你帮助小XC编一个程序,根据他垒的所有城堡的信息,决定应该移去哪些积木才能获得最佳的效果。 ACM 题目
(XC XC Jr., the son most like playing with building blocks, softball games beautiful castle. Castle is using some of the cube made up of building blocks, each level of the castle is a building block. XC is a smaller than his father XC also smart children, he found the time barrier castle, If the following modular building blocks than the above, then it is not easy to Castle reversing. So his base of the castle always follow such rules. XC want to make their small base of the castle gave kindergarten beautiful girls, this would increase the goodwill of his degree. For the sake of fairness, he decided to give each girl a high castle, It takes the girls to be more beautiful castle and the management. But he found himself in the barrier Castle did not advance to this point. So he is now to tran)

文件列表:
积木城堡.cpp (1042, 2007-05-29)

近期下载者

相关文件


收藏者