The re-election was shrouded in uncertainty and rested on complicated arithmetic among the four centrist parties.