백준 - 1085 직사각형에서 탈출
문제
1085 직사각형에서 탈출
답
kotlin code
1
2
3
4
5
6
7
8
9
fun main() {
q1085()
}
fun q1085() {
val (x, y, w, h) = readln().split(" ").map { it.toInt() }
println(arrayOf(x, y, w-x, h-y).minOf { it })
}
This post is licensed under CC BY 4.0 by the author.