While a 24% gain in the stock market sounds great, some S&P 500 companies more than quintupled those gains, while others saw disastrous declines.