ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Is Scala impractical for the problem sets?
Posted by Nadir 5 Aug 2015 00:43
The suggested Scala solution for the A+B problem ran with time ~0.3. My own solution was only fractionally better.

object Problem1000 {
  def main(args: Array[String]) {
    val expression = io.Source.stdin.getLines().next().split(" ")
    println(expression(0).toInt + expression(1).toInt)
  }
}

So I'm wondering if Scala is simply an impractical choice going forwards or if perhaps the the Scala judge is running suboptimally?

Edited by author 05.08.2015 00:44