Created
June 26, 2017 06:44
-
-
Save fkaa/5e848b2f6f6aed9f778f15215afec551 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
use std::io::{BufRead, stdin}; | |
fn main() { | |
let stdin = stdin(); | |
let mut lines = stdin.lock().lines().collect::<Result<Vec<String>, _>>().unwrap(); | |
lines.sort(); | |
for l in lines { println!("{}", l); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment