How did theodore roosevelt become president in 1901?

Ahe was elected in a nationwide landslide.
Bhe was elected in a very close contest with president mckinley.
Che was vice president to president mckinley and took office after mckinley was assassinated.
Dhe was speaker of the house and took office after president mckinley and his vice president were assassinated.