摘要: Math is very important, for those who are also in school, make sure you will learn more about math.Salmon and Cat are good friends.Today Salmon ask Ca... 阅读全文
posted @ 2015-07-15 21:36 Painting、时光 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Ytaaa作为一名特工执行了无数困难的任务,这一次ytaaa收到命令,需要炸毁敌人的一个工厂,为此ytaaa需要制造一批炸弹以供使用。 Ytaaa使用的这种新型炸弹由若干个炸药组成,每个炸药都有它的威力值,而炸弹的威力值为组成这个炸弹的所有炸药的最大威力差的平方,即(max-min)^2,假设一个炸... 阅读全文
posted @ 2015-07-15 21:34 Painting、时光 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThe description of this problem is very short. Now give you a string(length N), and ask you the max sum of the substring which the ... 阅读全文
posted @ 2015-07-15 21:32 Painting、时光 阅读(180) 评论(0) 推荐(0) 编辑
摘要: DescriptionAlex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One long winter evening he came up with a game and de... 阅读全文
posted @ 2015-07-15 00:18 Painting、时光 阅读(199) 评论(0) 推荐(0) 编辑
摘要: You are givennk-digit integers. You have to rearrange the digits in the integers so that the difference between the largest and the smallest number wa... 阅读全文
posted @ 2015-07-15 00:16 Painting、时光 阅读(397) 评论(0) 推荐(0) 编辑
摘要: /* map 向量可以存东西与数的大小无关,只与数的数目有关 */#include#include#include#includeusing namespace std;mapa;int main(){ for(int i = 0; i <= 32000; i++){ a[... 阅读全文
posted @ 2015-07-15 00:14 Painting、时光 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Right turnfrog is trapped in a maze. The maze is infinitely large and divided into grids. It also consists ofnobstacles, where thei-th obstacle lies i... 阅读全文
posted @ 2015-07-15 00:11 Painting、时光 阅读(221) 评论(0) 推荐(0) 编辑