SF Swimming and Housing

I will be attending a tech conference at the Moscone center October 25 - 29. Are there any good workouts available downtown? And with the price of downtown hotels, even with conference pricing, are there other areas, BART available, that would be reasonable, like, for instance, near the South San Francisco station?