Last active
October 7, 2020 05:12
-
-
Save TheNova22/fd975424194870a2928bfc712f816009 to your computer and use it in GitHub Desktop.
Readline Operations
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
// vim: syntax=swift | |
let line = Int(readLine()!)! | |
let line1 = readLine()!.split(separator: " ").map{ Int(String($0))! } | |
let numbers = readLine()!.components(separatedBy: [" "]).map { Int($0)! } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment