Before races, during and after, you should have a suitable diet in place which includes carbs, energy drinks, and recovery drinks or shakes.
By having the right mindset, consistent training program, the drive and determination to complete a triathlon, you will be good to go!