Skip to content

Instantly share code, notes, and snippets.

@fkaa
Created June 26, 2017 06:44
Show Gist options
  • Save fkaa/5e848b2f6f6aed9f778f15215afec551 to your computer and use it in GitHub Desktop.
Save fkaa/5e848b2f6f6aed9f778f15215afec551 to your computer and use it in GitHub Desktop.
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