LAHAINA, Hawaii (AP) Instead of calling timeout to set up a potential game-winning shot, Purdue calmly brought the ball up the court and fed it to A.J. Hammons into the post.
A quick fake and Purdue's junior big man turned toward the lane, flipping up a jump hook.
It rattled home and, after a failed desperation heave by BYU, the Boilermakers left Maui with a hard-fought win.
Hammons hit a jump-hook with 1.8 seconds left in overtime, lifting Purdue to an 87-85 win over BYU in the fifth-place game of the Maui Invitational on Wednesday.
''It felt good, it felt really good,'' Hammons said. ''Even though you'd never know that because it hit the back of the rim. But I'm just glad it fell, and we got the win.''
After splitting their opening games in Maui, the Boilermakers (5-1) found themselves in a tense, back-and-forth game against the Cougars.
Purdue dodged a last-second shot by BYU at the end of regulation and ran out to mob Hammons in jubilant relief after Kyle Collinsworth's heave from beyond midcourt was off the mark.
Vince Edwards had 25 points and Rapheal Davis 18 for Purdue.
''I thought our guys were able to hang in there and win the game,'' Purdue coach Matt Painter said. ''We had some really good performances across the board.''
BYU (4-2) had some decent ones, too.
Tyler Haws capped off a solid tournament by scoring 32 points and hitting some big shots in the second half. Anson Winder helped the Cougars keep up in the first half when it seemed the Boilermakers couldn't miss.
BYU came up just short, finishing the Maui Invitational 1-2, but giving itself a shot to win every game.
''Our guys all left it out there,'' BYU coach Dave Rose said. ''We just didn't have enough to get the win.''
BYU lost a tough one in its Maui opener, keeping up with No. 15 San Diego State before losing in double overtime. The Cougars showed no signs of fatigue less than 24 hours later, putting on an incredible shooting display against Chaminade.
BYU hit its first 12 shots from 3-point range and made 17 of 29 in the 121-85 blowout. Chase Fischer led the barrage, hitting nine of his school-record 10 3-pointers - a record previously held by Jimmer Fredette - in the first half on his way to scoring 30 points.
The Cougars had a much more difficult time against the bigger, more athletic Boilermakers, who lost a tight opener to Kansas State and rolled over Missouri on the second day.
Fischer was off the mark out of the gate, missing his four shots - all 3-pointers - in the first half, while Collinsworth went 1 for 6 from the field.
Haws and Winder made up for it, combining for 22 points to help the Cougars stay within 40-35 at halftime despite Purdue shooting 50 percent.
The Cougars started hitting a few more shots early in the second, with Fischer dropping in a pair of 3-pointers during a 13-4 run.
The Boilermakers didn't stop making shots, so the second half turned into a tense battle of trading baskets and little separation.
Haws had a chance to win it at the end of regulation, but his stepback baseline jumper came up short, sending the game to overtime at 81-all.
''We've seen Ty make that shot many times,'' Rose said. ''He'll get it again and he'll shoot it again, and next time hopefully it goes in.''
Purdue: Davis made 10 of 11 free throws, Edwards 8 of 9. ... Isaac Haas had 12 points and punished the Cougars physically in the post at both ends.
BYU: Fischer finished with seven points on 2-of-11 shooting - 1 for 2 from 3 - after his record-setting game the day before. ... The Cougars outscored Purdue 14-2 in fastbreak points.
Purdue hosts North Carolina State on Tuesday.
BYU hosts Eastern Kentucky on Saturday.
Guard Kendall Stephens appeared to dislocate the pinky on his left - non-shooting hand - with about 8 minutes left in the second half. The finger was bent outward as he ran to the bench, causing a collective groan from the crowd. He had four points on 1-of-7 shooting before the injury and missed two more shots after returning.
After making 17 3-pointers in their win over Chaminade, the Cougars weren't nearly as proficient against Purdue. BYU finished 7 of 21 from the arc and missed its only attempt in overtime.