摘要: 链接:http://poj.org/problem?id=1088DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二... 阅读全文
posted @ 2015-08-23 16:36 ~Arno 阅读(118) 评论(0) 推荐(0) 编辑
摘要: DescriptionEdwardhas established a company withnstaffs. He is such a kind man that he didQtimes salary increasing for his staffs. Each salary increasi... 阅读全文
posted @ 2015-08-21 13:49 ~Arno 阅读(171) 评论(0) 推荐(0) 编辑
摘要: next_permutation()这是一个求全排列的函数,返回值为bool型,如果后面还有排列返回true,否则返回false。int 类型int main(){int a[3];a[0]=1;a[1]=2;a[2]=3;do{cout> ch;sort(ch, ch + strlen(ch) )... 阅读全文
posted @ 2015-08-18 11:10 ~Arno 阅读(283) 评论(0) 推荐(0) 编辑
摘要: DescriptionLittle Petya very much likes rectangles and especially squares. Recently he has received 8 points on the plane as a gift from his mother. T... 阅读全文
posted @ 2015-08-18 09:47 ~Arno 阅读(269) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/124/BDescriptionYou are givennk-digit integers. You have to rearrange the digits in the integers so that the ... 阅读全文
posted @ 2015-08-18 08:52 ~Arno 阅读(439) 评论(0) 推荐(0) 编辑
摘要: DescriptionThere arencities numbered from 1 tonin Berland. Some of them are connected by two-way roads. Each road has its own length — an integer numb... 阅读全文
posted @ 2015-08-16 11:35 ~Arno 阅读(352) 评论(0) 推荐(0) 编辑
摘要: DescriptionSometimes it is hard to prepare tests for programming problems. Now Bob is preparing tests to new problem about strings — input data to his... 阅读全文
posted @ 2015-08-16 11:21 ~Arno 阅读(284) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John and Betsy are playing a game with N (1 2#include3#include4usingnamespacestd;56intfa[110000],sum[110000],under[110000];78intgetf... 阅读全文
posted @ 2015-08-08 17:43 ~Arno 阅读(150) 评论(0) 推荐(0) 编辑
摘要: DescriptionSevere acute respiratory syndrome (SAView CodeRS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-Mar... 阅读全文
posted @ 2015-08-08 16:07 ~Arno 阅读(110) 评论(0) 推荐(0) 编辑
摘要: DescriptionFor the daily milking, Farmer John'sNcows (1 ≤N≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game o... 阅读全文
posted @ 2015-07-30 17:08 ~Arno 阅读(115) 评论(0) 推荐(0) 编辑