fun main() { val (round, n) = readln().split(" ").map { it.toInt() } val a = readln().split(" ").map { it.toInt() } .sorted().toMutableList() val q = readln().toInt() for(i in 0..= 0 if(li < 0) li += 2*n var ri = a.binarySearch(r) val rExist = ri >= 0 if(ri < 0) ri += 2*n if(lExist != rExist) { cnt += 1 } cnt += ri - li println(cnt) } }