ref: f9483d7ee9a96891fbfaebd73acdc6b6e6895e7f
2021/day-01/src/main.rs
1 2 3 4 5 6 7 8 9 10 11 12 13
use std::io; use std::io::prelude::*; fn main() -> io::Result<()> { let stdin = io::stdin(); let lines = stdin.lock().lines(); for line in lines { println!("{:?}", line?); } Ok(()) }