[中譯] Puzzleup 2021 (3) NUMBERS GAME

作者: LPH66 (-6.2598534e+18f)   2021-09-15 22:51:23
題目網址: https://www.puzzleup.com/2021/
https://www.puzzleup.com/2021/puzzle/?3
答題時限: 9月16日7PM-比賽結束(約11月9日)
加分時限: 9月16日7PM-9月21日6:59PM
答對可得基本分100分。答案可上傳5次,每改1次答案從基本分扣20分。 
比賽期間內可隨時上傳答案,加分時限內答對第n天加(6-n)分       
另依題目的難易有額外加分(如有80%的人這題答錯,答對者加80分)  
◆NUMBERS GAME
You are playing a numbers game where your computer generates a random number
until the number is odd. Your score will be the number of even numbers
generated.
If you play this game many times what will be the average of your scores?
Note:
The numbers generated are equally likely to be odd or even.
你玩一個數字遊戲:讓電腦不斷產生亂數直到出現一個奇數。
你的分數是所產生的偶數的個數。
若你玩這遊戲許多次,試問平均分數為何?
註: 所產生的數字是奇數或偶數的機會相同。
作者: buffalobill (水牛比爾)   2021-09-16 06:55:00
一開始還以為是int32,看插圖才知道是0~9
作者: LPH66 (-6.2598534e+18f)   2021-09-16 17:17:00
一般人也不知道什麼是 int32 吧 XD

Links booklink

Contact Us: admin [ a t ] ucptt.com