Sometimes Ted would lie awake at night imagining a tribunal of all the girls who'd ever rejected him.