摘要: A Bug's Life Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different gend 阅读全文
posted @ 2015-08-28 14:50 wust_ouyangli 阅读(180) 评论(0) 推荐(0) 编辑
摘要: The SuspectsSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003... 阅读全文
posted @ 2015-08-28 14:25 wust_ouyangli 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Largest Rectangle in a Histogram A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equa 阅读全文
posted @ 2015-08-28 13:57 wust_ouyangli 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Anniversary CakeNahid Khaleh decides to invite the kids of the "Shahr-e Ghashang" to her wedding anniversary. She wants to prepare a square-shaped cho... 阅读全文
posted @ 2015-08-28 10:25 wust_ouyangli 阅读(421) 评论(0) 推荐(0) 编辑
摘要: The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 sliding tiles, eac... 阅读全文
posted @ 2015-08-28 09:55 wust_ouyangli 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 解析:假设机器人在(x,y)这个点,能量为power,那么可以到达它右下角曼哈顿距离小于等于power的地方,再以该点为起点继续搜索。代码如下:#include#include#include#include#include#include#include#include#include#inclu... 阅读全文
posted @ 2015-08-28 09:19 wust_ouyangli 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Throw nailsThe annual school bicycle contest started. ZL is a student in this school. He is so boring because he can't ride a bike!! So he decided to ... 阅读全文
posted @ 2015-08-28 09:00 wust_ouyangli 阅读(204) 评论(0) 推荐(0) 编辑