The total surpassed the previous record of 78 gold medals won by Japan at the 1966 Bangkok Games.