找回密码
 欢迎注册
查看: 8160|回复: 5

[转载] No: 16 November 04, 20

[复制链接]
发表于 2009-11-7 11:53:36 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?欢迎注册

×
Prisms in a Cube


We have a 4x4x4 cube consisting of 64 unit cubes. How many rectangular prisms can be counted in this cube?

Note: Rectangular prisms of every size, including the cubes (and the 4x4x4 cube itself) will be considered.
引申:边长为4x4x4的锥形体,有多少个锥形体(包括最小的和最大的)?
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2009-11-7 12:28:52 | 显示全部楼层
立方体
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2009-11-7 12:31:25 | 显示全部楼层
prisms 棱柱(体)
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2009-11-7 13:30:10 | 显示全部楼层
唉,这道题用程序穷举解太容易了
with t1 as(select level x from dual connect by level<=3)
select l.x,t.x,r.x,b.x,(r.x-l.x)*(b.x-t.x)*(z1.x-z0.x)v from t1 l,t1 r,t1 t,t1 b,t1 z0,t1 z1
where r.x>l.x and b.x>t.x and z1.x>z0.x
order by v,l.x;
1 =1
2 =27
3 =216
4 =1000
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2009-11-7 14:13:59 | 显示全部楼层
第二问呢?
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2009-11-7 21:25:26 | 显示全部楼层
只有1个问题,答案就是1000
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

小黑屋|手机版|数学研发网 ( 苏ICP备07505100号 )

GMT+8, 2024-4-27 23:42 , Processed in 0.055826 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表