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
input
macro for parsing input from all CP platforms
Structs§
Functions§
- copy_
splice - Use
splice
orcopy_from_slice
for copying data from one vec to another - hashmap
- Using
entry
in Hashmap for inplace manipulation - rand_c
- Get random values without
rand
crate