San Francisco scored five touchdowns on Thursday night, as each of the team's three quarterbacks accounted for at least one score.