Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. use std::io::{self, Write, BufRead};
  2.  
  3. fn main() -> io::Result<()> {
  4. let mut stdout = io::BufWriter::new(io::stdout());
  5.  
  6. for line in io::stdin().lock().lines() {
  7. let line = line?;
  8. writeln!(stdout, "{}", line)?;
  9. }
  10. Ok(())
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement