An open API service indexing awesome lists of open source software.

https://github.com/stepfenshawn/codeforces-rust

A simple Rust template used in codeforces!
https://github.com/stepfenshawn/codeforces-rust

Last synced: about 1 year ago
JSON representation

A simple Rust template used in codeforces!

Awesome Lists containing this project

README

          

# How to use?
Initialize it:
```rust
io_init!(scan, _out);
```
Read by spliting whitespace:
```rust
read!(scan, t => i32, mut n => i32, ...);
```
Read by lines (for String):
```rust
let s = scan.next_line();
```
Read an array with size of `n`:
```rust
let a: Vec<_> = (0..n).map(|_| scan.next::()).collect();
```

# More?
* [SparseTable(ST)](./ST.rs)