From our hotel in Rueil-Malmaison, you can go to Versailles by car. With smooth traffic, it takes about twenty minutes.
By public transport, bus + train, it takes a bit more than an hour.