— The Associated Press

STILLWATER, Okla. — James Anderson scored 27 points, Keiton Page was perfect on four 3-point tries at crucial times and Oklahoma State denied a bid by No. 1 Kansas to go undefeated through Big 12 play with an 85-77 victory on Saturday.

The Jayhawks (27-2, 13-1) had won their last 13 games since losing at Tennessee to close nonconference play and suffered their second loss of the season just hours after No. 2 Kentucky also lost to the Volunteers.

The last time the top two teams lost on the same day was Jan. 21, 2006, when No. 1 Duke lost to Georgetown and No. 2 Florida lost to Tennessee. Both of those teams were 17-0 at the time.

Students stormed the court after Oklahoma State (20-8, 8-6) moved to 3-1 against top-ranked teams all-time at home and likely removed any doubt of whether it would make the NCAA tournament for a second straight season. Despite entering the game in seventh place in the Big 12, the Cowboys had an RPI of 33.

It was OSU’s first win against a No. 1 team since beating Oklahoma on Feb. 4, 1989, and the landmark victory came in the same season the program got its first road win over a top 10 team in 52 years.

Sherron Collins had 22 points to lead Kansas, which allowed Oklahoma State to shoot 60 percent from the field and make 10 of 19 from 3-point range. Freshman Xavier Henry added 17 points and Cole Aldrich scored 11 but had little impact on the boards with only five rebounds.

The Cowboys used strong 3-point shooting to build a 19-point lead late in the first half and then held off a late charge by Kansas fueled by its full-court press. The Jayhawks closed within 80-74 on Henry’s 3-pointer with 1:08 remaining but Anderson hit three of four free throws on the Cowboys’ next two possessions and swatted Tyshawn Taylor’s shot in between.

The only thing that stopped the celebration after that was a malfunction that stopped the clock as it ran down — fittingly with all ones at 11.1.

Matt Pilgrim had 18 points after missing OSU’s last game due to a suspension, Obi Muonelo scored 17 and Page was 4 for 4 from 3-point range on his way to 15 points.