A Rust crate for providing helpful methods in online judging.
```rust
extern crate dmoj;
fn main() { println!("Hello, World!"); } ```
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.
```rust
fn main() { print!("Hello, "); println!("World!"); } ```
flush!
Flushes the stdout buffer.
```
use std::thread; use std::time::Duration;
fn main() { print!("Hello,"); flush!(); thread::sleep(Duration::from_secs(2)); println!(" World!"); } ```