Behind Jalen Smith's 21 second-half points, the Terps outscored the Wildcats 51-26 in the final 20 minutes.
Guard Taylor Mikesell shot 6-for-7 from the field and contributed 16 points.
The Terps raced to an early lead, but the Boilermakers fought back in the second half.
Anthony Cowan, Jalen Smith and Aaron Wiggins accounted for 47 of the Terps' 54 points against the Badgers.
All three of the Terps' losses this season have been in true road games.
Scott played a season-high 33 minutes in the Terps' 67-55 win over Ohio State on Tuesday.
Anthony Cowan led the Terps with 20 points.
Smith finished with 19 points and eight rebounds over the course of 25 minutes.
Jalen Smith scored a game-high 19 points.
Marial scored six points in 14 minutes.