/**
 * Given a list of athlete tuples containing their name, 100 meter sprint time, and long jump distance,
 * find the fastest athlete by calculating their overall performance score.
 * The overall performance score is calculated by multiplying the square root of the sprint time by 10,
 * and adding it to the long jump distance multiplied by 3.
 * The function should return a tuple containing the name and the overall performance score of the fastest athlete.
 */
fun calculateFastestAthlete(athletes: List<Triple<String, Int, Int>>): Pair<String, Int> {

    var fastestAthlete = Pair("", Int.MAX_VALUE) // Initialize the fastest athlete with no name and an infinite score

    for (athlete in athletes) {
        val (name, sprintTime, longJump) = athlete

        // Calculate overall performance score
        val performanceScore = (Math.sqrt(sprintTime.toDouble()) * 10 + longJump * 3).toInt()

        if (performanceScore < fastestAthlete.second) {
            fastestAthlete = Pair(name, performanceScore)
        }
    }

    return fastestAthlete
}
/**
 * Given a list of athlete tuples containing their name, 100 meter sprint time, and long jump distance,
 * find the fastest athlete by calculating their overall performance score.
 * The overall performance score is calculated by multiplying the square root of the sprint time by 10,
 * and adding it to the long jump distance multiplied by 3.
 * The function should return a tuple containing the name and the overall performance score of the fastest athlete.
 */
fun calculateFastestAthlete(athletes: List<Triple<String, Int, Int>>): Pair<String, Int> {
/**
 * Given a list of athlete tuples containing their name, 100 meter sprint time, and long jump distance,
 * find the fastest athlete by calculating their overall performance score.
 * The overall performance score is calculated by multiplying the square root of the sprint time by 10,
 * and adding it to the long jump distance multiplied by 3.
 * The function should return a tuple containing the name and the overall performance score of the fastest athlete.
 */
fun calculateFastestAthlete(athletes: List<Triple<String, Int, Int>>): Pair<String, Int> {

    var fastestAthlete = Pair("", Int.MAX_VALUE) // Initialize the fastest athlete with no name and an infinite score

    for (athlete in athletes) {
        val (name, sprintTime, longJump) = athlete

        // Calculate overall performance score
        val performanceScore = (Math.sqrt(sprintTime.toDouble()) * 10 + longJump * 3).toInt()

        if (performanceScore < fastestAthlete.second) {
            fastestAthlete = Pair(name, performanceScore)
        }
    }

    return fastestAthlete
}