Warning
- STL data structures are slow (use custom forward star link list, heap)
- add EXPLICIT guard rails
- write what you think is something to be kept in mind down
- C++ division rounds towards 0, use custom ceil div / floor div
- when doing floating point ops, DO NOT add up then substract back when doing sweep line, the smaller value will get absorbed into the larger one
- use
1ll * when doing modular multiplication!
unordered_map is only fast when you have enough element, and element hashing is fast. for smaller access use map.
- If the problem has double edges, OPEN DOUBLE THE SIZE!!!
- Use
fflush in interactive problems!!!
swap arrays will copy the items, not transfer the pointers
- DO NOT USE
cin >> (s + 1); ON CHAR ARRAY!!!
- When using backward for loops, check if the first element exceeds
int.