comp_input 0.1.0

Input library for competitive programming
Documentation

Input library for competitive programming.

Built for speed and to be callable in a concise manner, so no good error handling (just panics) or thread safety.

You need to call init() before trying to read anything, this sets up the global stdin lock used.

Example

extern crate soi_io;
use soi_io::input;

fn main() {
    soi_io::init();

    let line1 : String = input();
    let line2 : Vec<u8> = input();
    let line3 : (char, f64) = input();
    println!("{:?} {:?} {:?}", line1, line2, line3);
}