HDU 1069(暴力。。还好数据不大~)
来源:互联网 发布:淘宝能寄售网游金币 编辑:程序博客网 时间:2024/05/03 18:59
Monkey and Banana
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1724 Accepted Submission(s): 891
The researchers have n types of blocks, and an unlimited supply of blocks of each type. Each type-i block was a rectangular solid with linear dimensions (xi, yi, zi). A block could be reoriented so that any two of its three dimensions determined the dimensions of the base and the other dimension was the height.
They want to make sure that the tallest tower possible by stacking blocks can reach the roof. The problem is that, in building a tower, one block could only be placed on top of another block as long as the two base dimensions of the upper block were both strictly smaller than the corresponding base dimensions of the lower block because there has to be some space for the monkey to step on. This meant, for example, that blocks oriented to have equal-sized bases couldn't be stacked.
Your job is to write a program that determines the height of the tallest tower the monkey can build with a given set of blocks.
representing the number of different blocks in the following data set. The maximum value for n is 30.
Each of the next n lines contains three integers representing the values xi, yi and zi.
Input is terminated by a value of zero (0) for n.
Case 1: maximum height = 40Case 2: maximum height = 21Case 3: maximum height = 28Case 4: maximum height = 342
- HDU 1069(暴力。。还好数据不大~)
- 还好
- 还好。。。
- 还好
- 还好
- 还好
- HDU 5745(暴力)
- HDU 5762(暴力)
- hdu 5762(暴力)
- hdu 6130(水水数据 or 暴力)
- hdu 1015 (DFS,暴力)
- hdu 4968(暴力枚举)
- HDU 5258(水暴力)
- hdu 5305 Friends(暴力)
- hdu 5353 Average(暴力)
- hdu 5339 Untitled(暴力)
- hdu 5386 Cover (暴力)
- hdu 5386 Cover(暴力)
- 学习 ExtendedWebBrowser2 (2) C#中的Delegates与Event Handler (1)
- LKD第三版翻译时
- 浅谈服装行业管理软件中的颜色尺码问题
- .net 字符串截取
- Java测试二: 这个方法搜索一个字符数组中是否存在某个字符
- HDU 1069(暴力。。还好数据不大~)
- 基于Freescale的主流芯片HCS08
- C#系统钩子(转载)
- MFC控件使用之Static Text
- install Shibboleth
- 1111
- 2010 08 10安排
- 浏览器兼容性
- 公式编辑,拖拽后如何保持变量不变--$