Skip to content

Instantly share code, notes, and snippets.

@happasuke
Created April 1, 2017 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save happasuke/47f6d9bbc34e60d9e05a9d4dcf5e0302 to your computer and use it in GitHub Desktop.
Save happasuke/47f6d9bbc34e60d9e05a9d4dcf5e0302 to your computer and use it in GitHub Desktop.
object Main{
def main(args:Array[String]){
Array.fill(10)(readInt).sortWith((a,b) => a > b).slice(0,3).map(println(_))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment