David Peralta hit a tiebreaking single in the 10th inning, and the San Diego Padres overcame Heliot Ramos becoming the first right-handed batter to homer into McCovey Cove with a 4-3 win over the San Francisco Giants on Sunday that finished a three-game sweep. Ramos hit a 394-foot, opposite-field drive into the water behind the right field stands in the ninth off Robert Suarez (9-3), tying the score 2-2. San Diego began the day with a 2 1/2-game lead for the top NL wild card slot and 3 1/2 games back of the NL West-leading Dodgers, who played later Sunday.