設萬維讀者為首頁 廣告服務 技術服務 聯繫我們 關於萬維
簡體 繁體 手機版
分類廣告
版主:
萬維讀者網 > 靈機一動 > 跟帖
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)