Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Image: ubuntu2204
In a parallel universe we measure time in timestamps from a specific epoch 0. In this universe in Hungary every train departs from Budapest central train station and makes a round trip. Every train is always on time. After a train arrives to Budapest central station, it departs in the same timestamp.
In the following table you can see the counties of Hungary with their seat. The values in the First departure
column tells us when the first train departs after the epoch and Return time
tells us when it returns back.
County | Seat | Return time | First departure |
---|---|---|---|
Bács-Kiskun | Kecskemét | 59 | 50 |
Baranya | Pécs | 137 | 47 |
Békés | Békéscsaba | 139 | 60 |
Borsod-Abaúj-Zemplén | Miskolc | 127 | 55 |
Csongrád-Csanád | Szeged | 113 | 35 |
Fejér | Székesfehérvár | 43 | 56 |
Győr-Moson-Sopron | Győr | 83 | 20 |
Hajdú-Bihar | Debrecen | 157 | 41 |
Heves | Eger | 89 | 45 |
Jász-Nagykun-Szolnok | Szolnok | 73 | 30 |
Komárom-Esztergom | Tatabánya | 41 | 51 |
Nógrád | Salgótarján | 79 | 46 |
Pest | Budapest | N/A | N/A |
Somogy | Kaposvár | 131 | 38 |
Szabolcs-Szatmár-Bereg | Nyíregyháza | 151 | 22 |
Tolna | Szekszárd | 101 | 52 |
Vas | Szombathely | 149 | 38 |
Veszprém | Veszprém | 67 | 40 |
Zala | Zalaegerszeg | 163 | 19 |
For example to Miskolc in Borsod-Abaúj-Zemplén county, the first train departs at timestamp 55 and the subsequent departures are 182, 309, etc.
Let us assume that you arrive at Budapest central station at timestamp 200000, and you hop on the next train that departs from the station. To which city do you travel and how many timestamps do you need to wait until departure?
What is the first timestamp when every train arrives and departs from Budapest central station at the same time?