South Carolina (3-3, 2-2) got its first win over a ranked opponent since beating No. 18 Tennessee in 2016.