作者LPH66 (1597463007)
看板puzzle
標題[中譯] ProjectEuler 469 Empty chairs
時間Sun Apr 27 02:55:19 2014
469. Empty chairs
http://projecteuler.net/problem=469
房間裡有個圓桌,周圍有 N 張椅子。
騎士們依序進來並隨機坐在其中一個椅子上。
為了使得手肘有伸展的空間,騎士們會在彼此之間留下至少一個空椅子。
當已經沒有任何人可以入座後,檢視此時空椅子佔的比例 C。
令 E(N) 表示 C 的期望值。
給定 E(4) = 1/2, E(6) = 5/9,求 E(10^18)。將答案四捨五入至小數第十四位。
--
'You've sort of made up for it tonight,' said Harry. 'Getting the
sword. Finishing the Horcrux. Saving my life.'
'That makes me sound a lot cooler then I was,' Ron mumbled.
'Stuff like that always sounds cooler then it really was,' said
Harry. 'I've been trying to tell you that for years.'
-- Harry Potter and the Deathly Hollows, P.308
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.195.39.85
※ 文章網址: http://www.ptt.cc/bbs/puzzle/M.1398538524.A.AD3.html
※ 編輯: LPH66 (123.195.39.85), 04/27/2014 02:55:57
→ LPH66:解完才發現這題目(某種意味上)很簡單...(眼神死) 04/27 02:56
推 tml:PE偶爾會有這種感覺像是陷阱題的題目... 04/27 08:37
推 tml:當初有點納悶為什麼沒給E(10^6)之類的當參考,不過也沒放在心上 04/27 20:57
→ tml:現在回過頭來看就會覺得如果當初有參透就好了XD 04/27 20:57
推 jurian0101:未算先猜有遞迴顯式解 05/05 07:18