Skip to content

Instantly share code, notes, and snippets.

@notyy
Created May 5, 2012 10:02
Show Gist options
  • Select an option

  • Save notyy/2601278 to your computer and use it in GitHub Desktop.

Select an option

Save notyy/2601278 to your computer and use it in GitHub Desktop.
universe1
http://www.spoj.pl/problems/TEST/
import scala.io._
object Main {
def main(args: Array[String]) {
val source = Source.stdin
source.getLines.takeWhile((x=> x != "42")).foreach(println)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment