Nearly 100 smarties at the city’s top-performing high school bared their bodies in “risque” outfits yesterday to denounce their school’s conservative dress code — which bans the exposure of shoulders, midriffs, lower backs, bras and undies.

Stuyvesant HS students held the so-called “Slutty Wednesday” protest after girls got fed up with being told throughout the year that their short skirts and sleeveless tops made them more fit for a club dance floor than for a seat at the best public school in town.

Boys in tank tops complained that the administration’s apparent emphasis on keeping the girls well-covered was not only biased, but it also maligned the guys as horny teens who can’t control themselves when they see too much skin.

“We work our asses off here, and school is about learning. Clothing is not important,” said ninth-grader Lucy Greider, who said she has been sent to the office 10 times this school year for showing off too much cleavage, midriff or shoulder.

“Sometimes, the teachers will call you out in the hallway, [but] I like what I wear. I want to have my own style in school,” she added. “A lot of the classrooms don’t have a/c’s and when it is 80 degrees outside and it is really hot, it’s perfectly OK to show a little skin.”

The dress code, which was introduced in the fall, bars students from donning tops with text or images in bad taste.

Shorts, dresses and skirts are not permitted to end above the fingertips when students extend their arms down at their sides.

Principal Stanley Teitel didn’t respond to an e-mail seeking comment. But he told the student newspaper last year — when the dress code was first under consideration — that the policy was intended to create a better learning environment.

“Many young ladies wear denim skirts which are very tight and are short to begin with, and when they sit down, they only rise up, because there’s nowhere else to go,” Teitel told The Stuyvesant Spectator.

“The bottom line is, some things are a distraction, and we don’t need to distract students from what is supposed to be going on here, which is learning.”