New Yorkers who intend to vote in next Thursday’s primary elections may want to show up early.

For the first time, hundreds of dangerous sex offenders and pedophiles on parole will be allowed to vote in polling places in schools — but only after 7 p.m., state officials said.

Gov. Andrew Cuomo in May issued a blanket pardon giving 24,000 parolees the right to vote.

State law generally bars sex offenders from appearing on school grounds — with a few exceptions. One is being a “participant” in an activity at the school, the law says.

The state Department of Correctional Services has created a “special condition” that will allow a paroled sex fiend to vote at a polling place in a particular school after getting special permission from his parole officer and a school administrator.

“They may only enter upon the school grounds after 7 p.m. on the date of the election and not remain in or loiter around the school grounds once the voting process is completed,” the rule says.

But GOP gubernatorial candidate Marc Molinaro Thursday slammed Cuomo for rushing through the pardons and potentially “putting thousands of students at risk.”

Molinaro claimed that under his reading of the law, sex offenders can’t vote at polling places at schools because they are prohibited from entering them.

He also said they can’t vote by absentee ballot because they are barred from leaving their county of residence under their conditions of parole.

“This governor is encouraging sex offenders to break the law, which might actually violate their parole agreements. If Andrew Cuomo really wanted to, he could have addressed this issue legislatively, but in typical fashion he tried to govern by fiat and made a total mess of the situation,” Molinaro said.

Some upstate sheriffs slammed the policy and even threatened to arrest sex offenders who show up at schools.

“We’re going to alert the public that Gov. Cuomo’s new policy will allow sexual predators in the schools after 7 p.m. on Election Day There are student activities in our school up until 9 p.m,” said Chemung County Sheriff Chris Moss.

Moss said his staff is already looking at the names of Level 3 sex offenders in the county and seeing where they’re eligible to vote.

He said it was always his understanding that sex offenders can’t enter a school but will now consult with the county attorney on how to proceed.

“We’ll take appropriate action,” he said.

Cuomo’s office accused Molinaro of scaremongering.

“It’s pathetic that not only is Molinaro trying to fearmonger for political gain, he does it while also showing that he has no idea what he’s talking about,” said Cuomo spokesman Richard Azzopardi.

“The truth is, the governor’s action put New York on par with 16 other states — liberal and conservative — that restore voting rights to the formerly incarcerated and do so in the way that’s exactly prescribed by law,” the governor’s spokesman added.

There are currently 10,212 convicts registered with the state as Level 3 sex offenders, a category that classifies as the most violent and dangerous. It’s unclear how many of them are under parole supervision.