Cuba’s president tweeted about the results before there had been an official announcement.