Johnny Cueto tossed seven solid innings and Joe Panik's two-run homer off Zack Greinke was the difference in the Giants' win over Arizona.