fork(1) download
  1. object Main extends App {
  2. val range = (0 to 9999)
  3. val result = (for (i1 <- range; i2 <- range) yield i1 * i2)
  4. .filter(i => i.toString == i.toString.reverse)
  5. .max
  6. println(result)
  7. }
Time limit exceeded #stdin #stdout 5s 322432KB
stdin
Standard input is empty
stdout
Standard output is empty