The men were arrested shortly before the beginning of the Games, in August, after the FBI alerted the Brazilian authorities.
They are all Brazilian nationals.
The ringleader, Leonid El Kadre de Melo, has been given a prison sentence of 15 years.
His lawyer said her client was on hunger strike.
The other men have been jailed for five to six years. All say they will appeal.