ref: https://github.com/renbaoshuo/S2OJ/issues/4