cp_tricks

Crates.iocp_tricks
lib.rscp_tricks
version0.1.0
sourcesrc
created_at2021-06-28 15:18:52.793761
updated_at2021-06-28 15:18:52.793761
descriptionTricks for competitive programming. Do not use this crate.
homepage
repository
max_upload_size
id415797
size7,799
Sivaram Konanki (trickster)

documentation

README

Tricks for Competitive programming

IO

  • Use Scanner directly and parse input step by step
  • Use input! macro for any arbitrary inputs (Codeforces, Codechef requires this)
  • Or, use Scanner or UnsafeScanner for parsing input on demand

dbg! macro

  • dbg! is so handy, you can place it anywhere in the code, around a variable or even an expression, it outputs the value of expression to stderr. Great for debugging
  • dbg!, when in doubt, pass the reference
Commit count: 0

cargo fmt