LAHAINA, Hawaii (AP) _ Tony Stanley scored 21 points, including a back-breaking 3-pointer as the shot clock expired, and Dayton beat No. 6 Maryland 77-71 Wednesday in the third-place game of the Maui Invitational.

Dayton played only ranked teams in the three days, beating No. 12 Connecticut 80-66 in the opening round and losing 76-59 to No. 1 Arizona in the semifinals.

The Flyers (2-1) went up 65-55 with 5:05 to play on a 3-pointer by Stanley. But the Terrapins (1-2), who lost 90-80 to No. 8 Illinois in the semifinals, chipped away at the lead and closed to 67-64 with 2:51 to play on a basket down low by Lonny Baxter.

Stanley, a senior guard, made one of two free throws with 2:04 left, and after Maryland's Juan Dixon missed a 3-pointer, the Flyers worked the shot clock. With two seconds left on it, Maryland's Steve Blake tied up David Morris of the Flyers, but the possession arrow belonged to Dayton. Since the same team kept possession, the clock was not reset.

The ball was inbounded to Stanley in front of his own bench and he got off the 3-pointer just in time to give Dayton a 71-64 lead with 1:06 left. It was his fourth 3-pointer in seven attempts.

After a turnover by Maryland's Danny Miller, Nate Green made two free throws to give the Flyers a 73-64 lead with 51 seconds left.

Baxter led the Terrapins with 20 points, while Terence Morris had 17.

Green and Keith Waleskowski each added 10 points for the Flyers, who finished with a 41-33 rebound advantage.