15 lines
360 B
Rust
15 lines
360 B
Rust
use std::io::{self, BufRead, Write, BufWriter};
|
|
|
|
fn main(){
|
|
let stdin = io::stdin();
|
|
let lock_in = stdin.lock();
|
|
|
|
let stdout = io::stdout();
|
|
let lock_out = stdout.lock();
|
|
let mut buff = BufWriter::new(lock_out);
|
|
|
|
for line in lock_in.lines(){
|
|
buff.write_fmt(format_args!("{}\n",line.unwrap())).expect("Failed to write");
|
|
}
|
|
}
|