Commonly used functions in competitive programming