摘要:
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 阅读全文
摘要:
题目有很多图,不好粘贴。。。。。 题意:给出N个数和K1,K2的值,最开始指针指向第一个数,有6种操作 add x : 给前K2个数都增加x reverse : 翻转前K1个数 insert x : 在所指的数右边(顺时针)插入一个数 delete x : 删除指针所指的这个数,并且指针向右移(顺时 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
The SuspectsSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003... 阅读全文
摘要:
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 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
解析:假设机器人在(x,y)这个点,能量为power,那么可以到达它右下角曼哈顿距离小于等于power的地方,再以该点为起点继续搜索。代码如下:#include#include#include#include#include#include#include#include#include#inclu... 阅读全文
摘要:
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 ... 阅读全文