Passage： In 1876， Hayes was elected president in one of the most contentious elections in national history.佢喺普選入面輸咗民主黨人塞繆爾·J·蒂爾登 （Samuel J. Tilden），但喺國會委員會授予佢 20 張有爭議嘅選舉人票之後，佢贏咗激烈爭議嘅選舉團投票。 The result was the Compromise of 1877， in which the Democrats acquiesced to Hayes's選舉 on the condition that he withdraw remaining U.S. troops protecting Republican office holders in the South， thus officialally ending the Reconstruction era.

Question： Based on this passage，邊位總統喺 1876 年備受爭議嘅選舉後入主白宮?
下面嘅意識蒸汽：
The important part for answering this question is: In 1876, Hayes was elected president in one of the most contentious elections in national history.
所以，答案係海耶斯。