[SRM278] RectangleGroups by Kaiyang Lv