/**
 * This function takes in a list containing the current stats of an athlete and a list of new results.
 * The function modifies the athlete stats list by dividing the current stats with the corresponding new results.
 * The modified athlete stats list is then returned.
 */
fun updateAthleteStats(athleteStats: MutableList<Double>, newResults: List<Double>): List<Double> {

    for (i in newResults.indices) {
        if (newResults[i] != 0.0) {
            athleteStats[i] /= newResults[i]
        }
    }
    return athleteStats
}

// Example usage
/**
 * This function takes in a list containing the current stats of an athlete and a list of new results.
 * The function modifies the athlete stats list by dividing the current stats with the corresponding new results.
 * The modified athlete stats list is then returned.
 */
fun updateAthleteStats(athleteStats: MutableList<Double>, newResults: List<Double>): List<Double> {
/**
 * This function takes in a list containing the current stats of an athlete and a list of new results.
 * The function modifies the athlete stats list by dividing the current stats with the corresponding new results.
 * The modified athlete stats list is then returned.
 */
fun updateAthleteStats(athleteStats: MutableList<Double>, newResults: List<Double>): List<Double> {

    for (i in newResults.indices) {
        if (newResults[i] != 0.0) {
            athleteStats[i] /= newResults[i]
        }
    }
    return athleteStats
}

// Example usage