
Divide and Conquer(分治法)
文章平均质量分 80
Chen_yuazzy
The best way to predict the future is to create it.
预测未来的最好办法是去创造它。
---Alan Kay
展开
-
【AOJ 859】地毯填补问题(分治)
地毯填补问题Judge By CaseDescription相传在一个古老的阿拉伯国家里,有一座宫殿。宫殿里有个四四方方的格子迷宫,国王选择驸马的方法非常特殊,也非常简单:公主就站在其中一个方格子上,只要谁能用地毯将除公主站立的地方外的所有地方盖上,美丽漂亮聪慧的公主就是他的人了。公主这一个方格不能用地毯盖住,毯子的形状有所规定,只能有四种选择(如图2):原创 2017-06-23 22:57:10 · 1303 阅读 · 0 评论 -
【HDU 1007】Quoit Design(分治法)
【HDU 1007】Quoit Design(分治法)Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled awarded.In the field of Cyberground, the position of each toy is fixed, and the ring is caref原创 2017-04-27 12:48:31 · 624 阅读 · 0 评论