| UDESC Selection Contest 2024-1 |
|---|
| Закончено |
Léo and Ema are two astronauts living on Earth. One day, Ema was called on a mission to planet Miller, which orbits a black hole named Gargantua.
Because it orbits a black hole, time on Miller passes $$$X$$$ times slower than on Earth.
Knowing that Léo was $$$A$$$ years old before Ema traveled, and that Ema stayed $$$Y$$$ years (according to Miller's time) on Miller, what will be Léo's age when Ema returns to Earth?
The input consists of three lines, each containing one of the integers $$$A, X, Y$$$ $$$(0 \le A, X, Y \le 100)$$$ — Léo's age before Ema traveled to Miller, the factor by which time passes slower on Miller compared to Earth, and the number of years Ema stayed on Miller, respectively.
The output must contain a single integer, Léo's age when Ema returns to Earth.
2034
32
31173
82
123
7
| Название |
|---|


