/**
 * Given an area represented as a 2D array of elevation values and a factor,
 * modify the landform by multiplying each elevation value in the given area
 * with the factor.
 *
 * @param area A 2D list representing the area with elevation values.
 * @param elevation A list of elevation values.
 * @param factor The multiplication factor to modify the elevation values.
 * @return The modified area after multiplying each elevation value with the factor.
 */
fun modifyLandform(area: List<List<Int>>, elevation: List<Int>, factor: Float): List<List<Float>> {

    val modifiedArea = mutableListOf<List<Float>>()
    for (row in area) {
        val modifiedRow = mutableListOf<Float>()
        for (value in row) {
            modifiedRow.add(value.toFloat() * factor)
        }
        modifiedArea.add(modifiedRow)
    }
    return modifiedArea
}

// Example usage
/**
 * Given an area represented as a 2D array of elevation values and a factor,
 * modify the landform by multiplying each elevation value in the given area
 * with the factor.
 *
 * @param area A 2D list representing the area with elevation values.
 * @param elevation A list of elevation values.
 * @param factor The multiplication factor to modify the elevation values.
 * @return The modified area after multiplying each elevation value with the factor.
 */
fun modifyLandform(area: List<List<Int>>, elevation: List<Int>, factor: Float): List<List<Float>> {
/**
 * Given an area represented as a 2D array of elevation values and a factor,
 * modify the landform by multiplying each elevation value in the given area
 * with the factor.
 *
 * @param area A 2D list representing the area with elevation values.
 * @param elevation A list of elevation values.
 * @param factor The multiplication factor to modify the elevation values.
 * @return The modified area after multiplying each elevation value with the factor.
 */
fun modifyLandform(area: List<List<Int>>, elevation: List<Int>, factor: Float): List<List<Float>> {

    val modifiedArea = mutableListOf<List<Float>>()
    for (row in area) {
        val modifiedRow = mutableListOf<Float>()
        for (value in row) {
            modifiedRow.add(value.toFloat() * factor)
        }
        modifiedArea.add(modifiedRow)
    }
    return modifiedArea
}

// Example usage