The death toll rose to 47 Tuesday from the unusual one-two punch of a tropical storm and a hurricane hitting Mexico at nearly the same time. Authorities scrambled to get help into, and stranded tourists out of, the cutoff resort city of Acapulco.

With roads blocked by landslides, rockslides, floods and collapsed bridges, Acapulco was cut off from road transport after Tropical Storm Manuel made landfall Sunday. The terminal at the city’s international airport was flooded but not the landing strips.

Commercial carriers and the Mexican military responded by setting up flights ferrying tourists to a nearby concert hall instead of the terminal. Emergency flights began arriving in Acapulco to evacuate at least 40,000 mainly Mexican tourists stranded in the resort city where some streets were transformed into raging brown rivers.

Interior Secretary Miguel Angel Osorio Chong told the Radio Formula that 27 people had died because of the storm in the Pacific coast state of Guerrero, where Acapulco is. Osorio Chong said 20 more people died nationwide, many as a result of former hurricane Ingrid, which struck the Gulf coast Monday. Mexican meteorologists said it was the first time since 1958 that two tropical storms or hurricanes had hit both the country’s coasts within 24 hours.

Although most Acapulco hotels seemed to be operating normally Tuesday, many outlying neighborhoods were without water or electricity, and floodwaters were knee-deep at the city airport’s check-in counters.

Federal officials said it could take at least another day to open the main highway to Acapulco, which was hit by more than 13 landslides from surrounding hills, and to bring food and relief supplies into the city of more than 800,000 people.

Two of Mexico’s largest airlines, Aeromexico and Interjet, began running flights to and from the still-swamped airport.

Those with tickets got first priority, then families with small children or elderly members, officials said. Interjet’s director Luis Jose Garza told Milenio TV that his airline’s first flight was taking 150 passengers back to Mexico City and it hoped to run four to six such flights Tuesday.

Many tourists finally emerged from their hotels Tuesday morning after days of pelting rain.

“We realized the extent of the disaster for the first time because we were closed in and only saw rain and flooding,” said Alejandra Vadillo Martinez, a 24-year-old from Mexico City staying with seven relatives in the Crowne Plaza Hotel overlooking Acapulco’s bay.

The main coastal boulevard was open Tuesday and most hotels appeared to have power, water and food. But that was little consolation to those unable to leave.

The situation was far more serious in the city’s low-income periphery, where steep hills funneled rainwater into neighborhoods of cinderblock houses.

City officials said about 23,000 homes, mostly on Acapulco’s outskirts, were without electricity and water. Stores were nearly emptied by residents who rushed to stock up on basic goods. Landslides and flooding damaged an unknown number of homes.

Natividad Gallegos said she returned Monday from shopping to find her house in a poor Acapulco neighborhood buried by a landslide that killed six members of her family, including her two children. “I saw a lot of strangers with picks and shovels, digging where my house used to be,” she said, weeping.

The coastal town of Coyuca de Benitez and beach resorts further west of Acapulco, including Ixtapa and Zihuatenejo, were cut off after a river washed out a bridge on the main coastal highway.