Alex Smith completed 18 of 19 passes for 232 yards and three touchdowns to help the San Francisco 49ers flatten the Arizona Cardinals 24-3 on Monday night.