The Cougars (8-4) scored all of their points in the second half and were led by Hill, who completed 14 of 18 passes for 98 yards with two touchdowns and ran for 154 yards and a score.
The Wolf Pack (4-8, 3-5 Mountain West) led by seven at halftime and scored with 2:42 left in the game, but failed on a 2-point try and BYU ran the clock out to win it. Brandon Wimberly caught 10 passes for 117 yards, including a 4-yard TD strike late in the fourth quarter to narrow the gap.
BYU running back Jamaal Williams rushed for 219 yards with a 66-yard touchdown 32 seconds into the second quarter. He had 188 rushing yards in the second half.