摘要: Given n points on the XY plane, count how many regular rectangles are formed. A rectangle is regular if and only if its sides are all parallel to the ... 阅读全文
posted @ 2016-01-02 18:36 meekyan 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1296: [SCOI2009]粉刷匠Descriptionwindy有 N 条木板需要被粉刷。 每条木板被分为 M 个格子。 每个格子要被刷成红色或蓝色。 windy每次粉刷,只能选择一条木板上一段连续的格子,然后涂上一种颜色。 每个格子最多只能被粉刷一次。 如果windy只能粉刷 T 次,他最多... 阅读全文
posted @ 2016-01-02 16:43 meekyan 阅读(207) 评论(0) 推荐(0) 编辑