import kotlin.math.max import kotlin.math.min class Solution { fun solution(lines: Array): Int { var answer: Int = 0 val line1: IntArray = calLine(lines[0], lines[1]) val line2: IntArray = calLine(lines[1], lines[2]) val line3: IntArray = calLine(lines[0], lines[2]) val from: Int = minOf(line1[0], line2[0], line3[0]) val to: Int = maxOf(line1[1], line2[1], line3[1]) var status: Boolean = false f..