Skip to content

Commit f2ddfe9

Browse files
committed
26.04.08
1 parent ae19c70 commit f2ddfe9

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package baekjoon.bronze.b3
2+
3+
import kotlin.math.max
4+
import kotlin.math.min
5+
6+
fun main() {
7+
var mx = Int.MIN_VALUE
8+
var mn = Int.MAX_VALUE
9+
10+
repeat(readln().toInt()) {
11+
val (x, y) = readln().split(" ").map { it.toInt() }
12+
mx = max(mx, y)
13+
mn = min(mn, y)
14+
}
15+
16+
println(mx - mn)
17+
}

0 commit comments

Comments
 (0)