A veteran and a rookie led the way in the Giants' 38th one-run win of the year.