Crate input[][src]

Expand description

Provides input! macro.

Example

#[macro_use]
extern crate input as _;

use input::Usize1;

fn main() {
    // https://atcoder.jp/contests/abc166/tasks/abc166_b

    input! {
        n: usize,
        //ass: [[{ |n: usize| n - 1 }]],
        ass: [[Usize1]],
    }

    let _: usize = n;
    let _: Vec<Vec<usize>> = ass;
}

Macros

input

A input! macro.

Enums

Bytes

Reads a string as Vec<u8>.

Usize1

1-based index.

Traits

Readable

A trait representing which type can be read.

Functions

bytesDeprecated
usize1Deprecated