|
|
вернуться в форумОбщий форумIs Scala impractical for the problem sets? Послано Nadir 5 авг 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 |
|
|