设万维读者为首页 广告服务 技术服务 联系我们 关于万维
简体 繁体 手机版
分类广告
版主:
万维读者网 > 灵机一动 > 跟帖
Answer
送交者: htapx 2008月07月28日14:13:52 于 [灵机一动] 发送悄悄话
回  答: Fahrenheit to Celsiushtapx 于 2008-07-26 20:00:25
Note that a temperature T converts back to T if and only if T + 9 converts
back to T + 9. Thus it is only necessary to examine nine consecutive
temperatures. It is easy to show that 32 converts back to 32, 33 and 34
both convert back to 34, 35 and 36 both convert back to 36, 37 and 38
both convert back to 37, and 39 and 40 both convert back to 39. Hence out
of every nine consecutive temperatures starting with 32, five are converted
correctly and four are not. For 32 ≤ T < 32 + 9 · 107 = 995. There are
107 ·5 = 535 temperatures that are converted correctly. The remaining six
temperatures 995, 996, . . . , 1000 behave like 32, 33, . . . , 37, so four of the
remaining six temperatures are converted correctly. Thus there is a total
of 535 + 4 = 539 temperatures.
0%(0)
0%(0)
标  题 (必选项):
内  容 (选填项):
实用资讯
回国机票$360起 | 商务舱省$200 | 全球最佳航空公司出炉:海航获五星
海外华人福利!在线看陈建斌《三叉戟》热血归回 豪情筑梦 高清免费看 无地区限制
一周点击热帖 更多>>
一周回复热帖
历史上的今天:回复热帖
2005: 再谈过桥问题,解一
2005: 脑筋急转弯(N)