摘要:
链接:http://poj.org/problem?id=1088DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二... 阅读全文
摘要:
DescriptionEdwardhas established a company withnstaffs. He is such a kind man that he didQtimes salary increasing for his staffs. Each salary increasi... 阅读全文
摘要:
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) )... 阅读全文
摘要:
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... 阅读全文
摘要:
http://codeforces.com/problemset/problem/124/BDescriptionYou are givennk-digit integers. You have to rearrange the digits in the integers so that the ... 阅读全文
摘要:
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... 阅读全文
摘要:
DescriptionSometimes it is hard to prepare tests for programming problems. Now Bob is preparing tests to new problem about strings — input data to his... 阅读全文
摘要:
DescriptionFarmer John and Betsy are playing a game with N (1 2#include3#include4usingnamespacestd;56intfa[110000],sum[110000],under[110000];78intgetf... 阅读全文
摘要:
DescriptionSevere acute respiratory syndrome (SAView CodeRS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-Mar... 阅读全文