The Terps and the Bears finished with 44 combined fouls and Maryland's starting five combined for 79 of its 81 points.
Katie Benzan dropped a team-high 22 points in the Terps' first game in nine days.
The Terps had a full week between games and were able to benefit from extra practice time.
The Gamecocks dropped 24 second-chance points to take down the Terps.
Fatts Russell and Eric Ayala combined for 38 points in the Terps' first win under interim head coach Danny Manning.
The Terps struggled offensively against the Gamecocks who pulled down 61 rebounds.
Benzan and Masonius made the play that changed the Terps' momentum against Miami.
The Terps took a while to hit their stride but came out on top against the Scarlet Knights.
The Terps were plagued by the same shooting issues as before in their conference opener against Northwestern.
Assistant coach Danny Manning will take over as the interim head coach following the announcement.