LARAMIE, Wyo. (AP) — On a night of lackluster defense, Wyoming needed to step up on offense.

The Cowboys did just that, shooting 65 percent from the floor (22 of 34) and 90.5 percent from the free throw line (19 of 21) to stay unbeaten with a 71-61 win over Denver on Tuesday.

Luke Martinez scored 25 points and Larry Nance Jr. 21, both career highs, and Derrious Gilmore added 12 for the Cowboys (11-0), who matched the 1987-88 team's start through 11 games.

Martinez was 9 of 12 from the floor, including 5 of 6 from 3-point range, and Nance was 11 of 11 from the free throw line. Wyoming shot 8 of 12 from beyond the arc, a season-high 67 percent.

Chris Udofia scored a season-high 26 points and Royce O'Neale 12 for Denver (3-6), which shot 53.5 percent (23 of 43).

Wyoming took an 8-0 lead and never trailed but couldn't build a comfortable margin. Down the stretch, the Cowboys matched the Pioneers bucket for bucket and were able to hold on.

Wyoming coach Larry Shyatt was pleased with his team's scoring output.

"We needed that bad. I was really happy. We banged home some 3s," Shyatt said. "Against a team as well-coached as that, you're just not going to get the stops you need."

Denver coach Joe Scott said Martinez was the key, along with Wyoming's quick start.

"Martinez hit some big shots, and the key is you can't let him make his 3s," Scott said. "We've struggled with our starts on the road. We were a little bit better tonight. You look at the game, it was 8-0 and it was an even game from there. . You have to get off to a good start."

Udofia, who was 9 of 15 shooting, said: "We weren't focused at the beginning, and whenever we could make it a game, we just couldn't get our defense together and execute."

Leonard Washington, the Cowboys' leading scorer with an average of 15.2 points coming in, was held to eight points but had a career-high five assists. Nance said the team's offensive balance makes it tough to key on one player.

"If they try to take away Leonard, we have four, five other guys that can step up in the scoring," Nance said.

Wyoming led by 13 late, but the advantage shrunk to six. However, Washington's layup and free throw made it 69-60 at the 1:03 mark and blunted the Pioneers' last surge.

Gilmore's 3-pointer gave the Cowboys a 46-36 margin with 13:32 remaining, but Denver trimmed the lead to 48-43 after Cam Griffin dunked, then stole the ball and hit a free throw. Gilmore would hit another 3 at the 6:56 mark to again boost the lead to 10. Wyoming built its largest advantage at 60-47 after two free throws by Gilmore with 4:33 left.

Wyoming committed a season-high 17 turnovers, while Denver had 11.