1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
mod stdin; mod stdout; use scan::Scan; use buf::CopyingBufReader; pub const DEFAULT_BUF_SIZE: usize = 8 * 1024; pub use self::stdin::{stdin, Stdin}; pub use self::stdout::{ stdout, flush }; pub fn scan<T>() -> T where CopyingBufReader<Stdin>: Scan<T> { Scan::<T>::scan(stdin()) }