Sobes.tech
Middle+

The task: a train is at a distance S from the city and is moving towards it at a speed V1. A fly flies between the train and the city at a speed V2, turning around upon reaching the train or the city, until the train reaches the city. How far does the fly fly?