Tim Lincecum allowed just an unearned run in seven innings, while Mat Latos gave up three runs -- including two solo shots by Carlos Beltran -- as the Giants won 3-1 to sweep the three-game series with the Padres.