上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: Old MacDonald has a farm and a large potato field, (1010 + 1) × (1010 + 1) square meters in size. The field is divided into square garden beds, each b 阅读全文
posted @ 2016-07-11 11:19 wust_ouyangli 阅读(494) 评论(0) 推荐(1) 编辑
摘要: 题目有很多图,不好粘贴。。。。。 题意:给出N个数和K1,K2的值,最开始指针指向第一个数,有6种操作 add x : 给前K2个数都增加x reverse : 翻转前K1个数 insert x : 在所指的数右边(顺时针)插入一个数 delete x : 删除指针所指的这个数,并且指针向右移(顺时 阅读全文
posted @ 2016-07-08 10:20 wust_ouyangli 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Partychen invents a new game named “Eleven Puzzle” .Just like the classic game “Eight Puzzle”,but there some difference between them:The shape of the 阅读全文
posted @ 2016-07-08 09:58 wust_ouyangli 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页