The only way the Warriors can be stopped from winning the NBA title now is if their players resort to some late-night tweeting.

So says a new study out of Stony Brook University, which shows NBA players posted substandard statistics in games that followed a late-night tweet, measured as being sent between 11 at night and 7 in the morning.

According to Stony Brook professor Lauren Hale, a sleep researcher, 112 verified NBA players were tracked from the 2009-2010 season through 2015-16, seven seasons of data that included 30,000 deep-in-the-night tweets.

Knicks star Carmelo Anthony’s tweets were included as part of the study, according to a source.

Players scored on average 1 point fewer in games following a late-night tweet and their shooting accuracy dropped 1.7 percentage points.

Hale, in an interview Monday with The Post, said for players who rarely tweet, their shooting percentage dropped by 4 percent after an instance of late-night posting – which she branded as a very substantial margin.

The study – which controlled for time-change/travel factors by only including nights before games in the player’s “home” time zone – also showed a player took fewer shots and recorded fewer rebounds, steals and blocks.

“Using late-night tweeting activity as a proxy for being up late, we interpret these data to show that basketball skills are impaired after getting less sleep,” said Jason J. Jones, Assistant Professor of Sociology at Stony Brook, who conducted the study with Hale.

One complicating factor is late-night NBA tweeters saw their minutes reduced by an average of two minutes the next day. That would explain some statistical drop-offs. However, Hale said, “We hypothesized that could be due to the coaches saw more fatigue and sloppy play.’’

Hale will present the findings Monday in Boston at “SLEEP 2017,” a conference on sleep medicine and research.

“Our findings are relevant beyond just sports science research,” said Hale, a PHD professor in Public Health. “Our results demonstrate a broader phenomenon: to perform at your personal best, you should get a full night of sleep.”