문제
4153 직각삼각형
답
kotlin code
fun main() {
val output = StringBuilder()
while (true) {
readln().run {
val (a, b, c) = this.split(" ").map { it.toInt() * it.toInt() }.sorted()
if (a + b + c == 0) {
print(output)
return
}
output.append(if (a + b == c) "right\n" else "wrong\n")
}
}
}