SAN FRANCISCO — Hewlett-Packard Co. will pay more than $108 million to resolve allegations that it bribed foreign officials in Russia, Poland and Mexico to win lucrative government contracts.

The Securities and Exchange Commission and the Department of Justice announced sweeping settlements with HP on Wednesday that address alleged violations of the Foreign Corrupt Practices Act in the three countries. As part of the deal, HP’s Russian subsidiary admitted it paid bribes to land a technology contract with the Russian government and will plead guilty to violating the FCPA. The company’s subsidiaries in Mexico and Poland also admitted wrongdoing in exchange for nonprosecution and deferred prosecution agreements, respectively.