找回密码
 立即注册
搜索
总共850条微博

动态微博

查看: 3567|回复: 11
打印 上一主题 下一主题
收起左侧

(2000年全国初中数学竞赛题) 一幢33层的大楼

[复制链接]

10

主题

271

帖子

1996

积分

楼主
发表于 2005-2-13 02:34:23 | 显示全部楼层

answer


27th floor
www.ddhw.com

 
回复 支持 反对

使用道具 举报

10

主题

271

帖子

1996

积分

沙发
发表于 2005-2-14 19:04:54 | 显示全部楼层

explanation


Let n (2<=n<=33) be the floor that the elevator stopped, D(n) be the total displeased points.  Since everyone tried to minimize his displease points, people live at or lower than floor [(n+3)/4] (here, [x] is the largest integer less than or equal to x) will walk, all others will take the elevator.  If n+3 = 0 (mod 4), the person lives at floor (n+3)/4 is indifferent, so we assume he/she will always take the elevator. 

 www.ddhw.com

Consider D(n+1)-D(n) (2<=n<=32),  then we only have to consider those taking the elevator.  Let the total displease points for those walking be S.

D(n+1) = 3(1+…+(33-n-1))+(1+…+(n+1-[(n+3)/4])) + Swww.ddhw.com

D(n) = 3(1+…+(33-n))+(1+…+(n-[(n+3)/4])) + S

So D(n+1)-D(n) = (n+1-[(n+3)/4])-3(33-n) = 4n-98-[(n+3)/4]

            It’s negative when n < 27, positive when n >= 27.www.ddhw.com

 

That means floor 27 is the best choice.  The total displease points are

3(1+…+6)+(1+…+19)+3(1+…+5) = 63 + 190 + 45 = 298.

www.ddhw.com

 

回复 支持 反对

使用道具 举报

24小时热帖
    一周热门
      原创摄影
        美食美文
          您需要登录后才可以回帖 登录 | 立即注册

          本版积分规则

          Archiver|手机版|珍珠湾ART

          Powered by Discuz! X3 © 2001-2013 All Rights Reserved