赶地铁
You have a train to catch!
题目详情
蜘蛛侠每次任务后都会赶到地铁站:一条线去 Mary 家,另一条线去 Gwen 家。两条线的列车都每 10 分钟发车一次。
蜘蛛侠很“公平”,每次都上最先发车的那趟。
但他发现自己去 Mary 家的次数竟然是去 Gwen 家的 9 倍。为什么会这样?
提示:两条线的发车间隔不一定是均匀的 5 分钟对 5 分钟。
Spiderman has two close friends, Mary Jane & Gwen Stacy. After every mission, he rushes to the central subway. One line heads towards Mary's place, and another towards Stacy. Trains from each line leave every 10 minutes. Spiderman being impartial always boards the first train that leaves.
However, he observes that he ends up visiting Mary Jane nine times more often than Gwen Stacy. Can you decipher why?
Hint
The gap between the two trains may not be 5 minutes each.
解析
因为两条线虽然都“每 10 分钟一班”,但时刻表可能错位得很不均匀。
举例:
- Mary 线在每个整 10 分钟发车:
- Gwen 线在每个整 10 分钟后的第 1 分钟发车:
这样每个 10 分钟周期里:
- 从 Mary 发车到 Gwen 发车的间隔只有 1 分钟(这 1 分钟到站的人会坐 Gwen)。
- 从 Gwen 发车到下一班 Mary 发车的间隔有 9 分钟(这 9 分钟到站的人会坐 Mary)。
如果蜘蛛侠到站时间近似均匀随机,那么他坐 Mary 与 Gwen 的概率比就是 。
Original Explanation
The gap from to is 1 minute, and the gap from to is 9 minutes
Solution
Since both trains leave at the same frequency of 10 minutes, probably the solution lies in the gap between the two consecutive trains of each line. Suppose the train (towards Mary) leaves at the minutes:
And the train (towards Gwen) leaves at the minutes: and so on, where
Suppose Spiderman randomly reaches the station at some time minutes where is an arbitrary integer and is the fraction that determines his fate, .
Note that if means that he just missed and now has to wait for . While means the opposite.
Thus, the probability that he takes the train is:
The train heading to Mary Jane's location leaves precisely 1 minute before the train heading to Gwen Stacy's location. Therefore, 9 out of 10 times, spiderman reaches the station when the next train is leaving towards Mary.