NC State, which led by 13 points in the first half, held its last lead at 62-61 with 4:12 left. Maryland answered with 11 straight points, including five free throws by Hayes.
Greivis Vasquez, who announced earlier in the week that he would be testing the NBA draft, had 17 points and 10 assists for Maryland (19-12).
Julius Mays led N.C. State (16-14) with 18 points. Ben McCauley had 14 points and Dennis Horner had 11.
The Terps will face No. 2 seed Wake Forest in the quarterfinals on Friday night.
(AP Photo/Dave Martin)