import scala.collection.mutable import scala.io.StdIn import scala.util.Random object Main { def main(args: Array[String]): Unit = { val i: Int = StdIn.readInt() val random = new Random val set = mutable.Set[Int]() for (elem <- 1 to i) { set.add(StdIn.readInt()) // s...