update sungkohan

This commit is contained in:
2025-09-01 16:26:33 +09:00
parent eade99aadd
commit 97b6fb2901
6 changed files with 209 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import java.io.StreamTokenizer
fun calcs(maxCycle: Int, calcs: List<Pair<Int, Int>>, query: List<Int>) {
var sCalcs = calcs.sortedBy { it.first }
}
fun main() = with(StreamTokenizer(System.`in`.bufferedReader())) {
nextToken()
val n = nval.toInt()
nextToken()
val maxCycle = nval.toInt()
val calcs = (1..n).map {
nextToken()
val s = nval.toInt()
nextToken()
val e = nval.toInt()
Pair(s, e)
}
val q = nval.toInt()
val times = (1..q).map {
nextToken()
nval.toInt()
}
}