input!
macro for any arbitrary inputs (Codeforces, Codechef requires this)Scanner
or UnsafeScanner
for parsing input on demanddbg!
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 debuggingdbg!
, when in doubt, pass the reference