https://dmoj.ca/problem/2drmq https://codeforces.com/blog/entry/53810 https://github.com/cpinitiative/usaco-guide/blob/master/content/5_Plat/2DRQ.mdx https://github.com/odysa/ICPCCompetitionCodes/blob/master/2drmq.cpp