complete@ucpc 2025-1-c.kt 2025-1-i.kt
This commit is contained in:
20
storage/ucpc/kt/2025-1-c.kt
Normal file
20
storage/ucpc/kt/2025-1-c.kt
Normal 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])
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user