An analysis by The Associated Press shows that the cost of putting on last year's Rio de Janeiro Olympics was $13.1 billion, paid for with a mix of public and private money.

Officials of Brazil's Public Authority for Olympic Legacy said at a news conference Wednesday, the cost for "sports-related venues" was $2.06 billion. In addition, the Rio organizing committee previously said the cost of running the Games at $2.8 billion.

The Olympic legacy body did not account for other Olympic-related costs. But the AP obtained them in emailed statements from city, state and federal agencies.

Those costs were $8.2 billion for, among other things, a subway line, a doping laboratory, a renovated port and cleanup of polluted Guanabara Bay.

The doping laboratory was paid for by the federal government and cost $50 million. A delay-plagued subway line project that was built to connect fans to Olympic Park had a price tag of $2.98 billion. According to a state auditor's report cited in August, the railway was overbilled by 25 percent.

Another legacy project, the renovation of Porto Maravilha, a run-down historic area in Rio, cost the city $4.2 billion.

"Should a country with such inequality as Brazil have hosted such an event with this level of investment," federal prosecutor Leandro Mitidieri said. He said it would be difficult to use the Olympic venues in a way that would generate enough income to cover maintenance expenses.

"It is a challenge and we can see the difficulties," he said. "We recognize the difficulties."

Officials presented the report at the Olympic Park in suburban Barra da Tijuca, which now consists of mostly vacant venues. Last month a federal prosecutor said many of the venues were "white elephants" that were built with "no planning."

The Rio Olympics, which opened 10 months ago, were plagued by countless financial and organizational problems, and were hosted as Brazil sank into its deepest recession since the 1930s.

The state of Rio de Janeiro has been months late paying teachers, hospital workers, and pensions. The state also reported record-breaking crime in 2016 in almost all categories from homicides to robbery.

The problems around the Rio Games — and the aftermath — have called into question the wisdom of cities building new venues every few years to accommodate an event that lasts just over two weeks.

Paulo Marcio, the head of the Public Authority for Olympic Legacy, talked vaguely about plans to use the venues. The Olympic Park has staged mainly small national or local events.

He did not offer any cost or income figures with most of the Olympic arenas now being operated by Brazil's federal government. A plan to auction off the venues to private operators failed when only one bidder was reported to be interested.

"I think that in a short period of time I will be able to deliver this legacy, and we have already been successful," he said.