dmoj 0.1.5

A Rust crate for providing helpful methods in online judging
Documentation
/// Macros for reading from stdin

#[macro_export]
macro_rules! scan {
    ($t:ty) => { $crate::scan::<$t>() };
    ($($t:ty),+) => { ($($crate::scan::<$t>(),)*) };
}


/// Macros for writing to stdout

#[macro_export]
macro_rules! println {
    ($($arg:tt)*) => { {
        use std::io::Write;
        writeln!($crate::stdout(), $($arg)*).unwrap();
    } }
}

#[macro_export]
macro_rules! print {
    ($($arg:tt)*) => { {
        use std::io::Write;
        write!($crate::stdout(), $($arg)*).unwrap();
    } }
}

#[macro_export]
macro_rules! flush {
    () => { $crate::flush() }
}