It didn't take long for Katie Ledecky to get over her loss.

The 20-year-old swimmer on Thursday bounced back from her first defeat in the final of major international meet and helped Team USA win gold in the 4x200-meter freestyle relay at the World Championships in Budapest.

Team USA took gold with a time of 7 minutes, 43.39 seconds, followed by China for the silver and Australia with the bronze. Ledecky boasted the fastest split time of the 32 swimmers by 1.44 seconds.

GOLD! #TeamUSA picks up another relay title to close out day five of #FINABudapest2017 in the women's 800m free relay. 🥇🙌 pic.twitter.com/twKTX9zKgR — USA Swimming (@USASwimming) July 27, 2017

“I really just got rid of the negative energy,” Ledecky said afterward on NBCSN. “I knew I had a big race for Team USA tonight. That made it easy to get focused.”

Ledecky saw her perfect mark in individual races at major international meets come to an end one day earlier on Wednesday when Italy's Federica Pellegrini took gold in the 200-meter freestyle.

With her 13th gold medal, however, Ledecky extended her female record after breaking her tie with fellow American Missy Franklin on Tuesday to become the first woman to win 12 gold medals at the World Championships and move up the list to third-most by any swimmer.