WA - Triathlon - INOI1201

Why is my code showing WA for this?
My code : https://ideone.com/03Ha7O

Someone please help me to find the flaw in my code.