complete@ucpc 2025-1-c.kt 2025-1-i.kt

This commit is contained in:
2025-07-12 19:18:59 +09:00
parent 1c2acfaebe
commit cd64086305
2 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
fun minCostAvoid(intervals: List<Pair<Int, Int>>, laserRanges: List<Pair<Int, Int>>): List<Pair<Int, Int>> {
val (n: Int, q: Int) = Pair(intervals.size, laserRanges.size)
}
fun main() = with(System.`in`.bufferedReader()) {
val (n, q) = this.readLine().split(' ').map { it.toInt() }
val intervals = (1..n).map {
val split = this.readLine().split(' ').map { it.toInt() }
Pair(split[0], split[1])
}
val laserRanges = (1..q).map {
val split = this.readLine().split(' ').map { it.toInt() }
Pair(split[0], split[1])
}
}