Crate cp_tricks[−][src]
Expand description
Tricks for competitive programming
Most used ones are
- Macro input! for input parsing all at a time
- Scanner/UnsafeScanner for parsing on demand
Macros
input
macro for parsing input from all CP platforms
Structs
Functions
Use splice
or copy_from_slice
for copying data from one vec to another
Using entry
in Hashmap for inplace manipulation
Get random values without rand
crate