Since 1842 , the U.S. presidential election has been contested in California 43 times , with Californians successfully voting for the winning candidate on 34 occasions , giving an overall success rate of 81 percent .