Concepts2
⚙️AlgorithmIntermediate
Fast I/O and Optimization Tricks
Fast I/O reduces overhead from C and C++ stream synchronization and avoids unnecessary flushes, which can cut runtime by multiples on large inputs.
#fast io#iostream synchronization#cin.tie+12
⚙️AlgorithmIntermediate
Bitmask DP
Bitmask DP compresses the state of a subset of n elements into an integer mask, enabling elegant dynamic programming over all subsets.
#bitmask dp#subset dp#held-karp+12