My Algorithm Contest Code.