| Crates.io | comp-io |
| lib.rs | comp-io |
| version | 0.1.2 |
| created_at | 2024-09-26 02:07:11.791721+00 |
| updated_at | 2024-10-05 04:11:11.415609+00 |
| description | A crate for optimized io operations to numerical types |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1386885 |
| size | 8,268 |
A Rust library for competitive programming to make io operations simpler.
The comp-io crate provides methods to read numerical values, as well as chars from stdin
The usage of comp-io typically looks like this:
let mut reader = comp_io::Reader::new();
let num1: i32 = reader.next_i32().unwrap();
let num2: f64 = reader.next_f64().unwrap();
println!("read: {num1} {num2}");
Note: The Reader struct expects an EOF at the end of input. To enter this in the terminal, press CTRL + D