Rockville seventh grader and Rubik’s world champion Fiona Bao was the only female competitor among more than 80.