Crate comp_input

Source
Expand description

Input library for competitive programming.

§Example: reading a graph given as an edge list

#[macro_use]
extern crate comp_input;

fn main() {
    input! {
        n, m: usize,
        edges: [(usize1, usize1); m]
    }
}

Macros§

input
read_one

Structs§

FormattedRead

Traits§

FromAscii