Codeforces contest 1277 E. Beautiful Rectangle

原文地址:https://www.cnblogs.com/Patt/p/12048505.html