Post

[백준/코틀린] 1330번: 두 수 비교하기

브론즈 5

링크

1330번: 두 수 비교하기

풀이

생략

코드

1
2
3
4
5
6
7
8
9
10
11
12
fun main() {
    val (a, b) = readln().split(" ").map { it.toInt() }

    println(
        when {
            a > b -> ">"
            a < b -> "<"
            else -> "=="
        }
    )
}

This post is licensed under CC BY 4.0 by the author.