Created
April 1, 2017 01:46
-
-
Save happasuke/47f6d9bbc34e60d9e05a9d4dcf5e0302 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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