there are many threads on this subject in the archives. It's not an easy question to answer, and something I probably wouldn't do myself. The good news is that you generally can take it slow and finish a century without too much training. That happens all the time.
If you want to finish the century in good form, your efforts on the bike are far more important than anything you can do off the bike.