Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::io::{self, Write, BufRead};
- fn main() -> io::Result<()> {
- let mut stdout = io::BufWriter::new(io::stdout());
- for line in io::stdin().lock().lines() {
- let line = line?;
- writeln!(stdout, "{}", line)?;
- }
- Ok(())
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement