/**
 * Checks if the lengths of three given pieces of wood are acceptable.
 *
 * @param lengths A tuple of three integers representing the lengths of three pieces of wood.
 * @return True if all three lengths are not equal, False otherwise.
 */
fun checkAcceptableLengths(lengths: Triple<Int, Int, Int>): Boolean {

    // Loop through the tuple elements
    for (length in lengths.toList()) {
        // Check if any two lengths are equal
        if (length != lengths.first && length != lengths.second && length != lengths.third) {
            // All three lengths are not equal
            return true
        }
    }
    // All three lengths are equal
    return false
}
/**
 * Checks if the lengths of three given pieces of wood are acceptable.
 *
 * @param lengths A tuple of three integers representing the lengths of three pieces of wood.
 * @return True if all three lengths are not equal, False otherwise.
 */
fun checkAcceptableLengths(lengths: Triple<Int, Int, Int>): Boolean {
/**
 * Checks if the lengths of three given pieces of wood are acceptable.
 *
 * @param lengths A tuple of three integers representing the lengths of three pieces of wood.
 * @return True if all three lengths are not equal, False otherwise.
 */
fun checkAcceptableLengths(lengths: Triple<Int, Int, Int>): Boolean {

    // Loop through the tuple elements
    for (length in lengths.toList()) {
        // Check if any two lengths are equal
        if (length != lengths.first && length != lengths.second && length != lengths.third) {
            // All three lengths are not equal
            return true
        }
    }
    // All three lengths are equal
    return false
}