dmoj-rust
A Rust crate for providing helpful methods in online judging.
Usage
extern crate dmoj;
Provided macros
print!
, println!
This crate provides print!
and println!
macros that shadow the prelude versions. These versions are about 10 times faster and fully API compatible, but sacrifice thread safety.
Example
extern crate dmoj;
flush!
Flushes the stdout buffer.
Example
#[macro_use] extern crate dmoj;
use std::thread;
use std::time::Duration;
fn main() {
print!("Hello,");
flush!();
thread::sleep(Duration::from_secs(2));
println!(" World!");
}