08 2015 档案
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5363Problem Descriptionsoda has a setSwithnintegers{1,2,…,n}. A set is called key set if the sum of int...
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5305Problem DescriptionThere arenpeople andmpairs of friends. For every pair of friends, they can choos...
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5417Problem DescriptionVictor has a machine. When the machine starts up, it will pop out a ball immedia...
阅读全文
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=5414Problem DescriptionCRB has two stringssandt.In each step, CRB can select arbitrary charactercofsand i...
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5410Problem DescriptionToday is CRB's birthday. His mom decided to buy many presents for her lovely son...
阅读全文
摘要:DescriptionAs shown in the following figure, If another lighthouse is in gray area, they can beacon each other.For example, in following figure, (B, R...
阅读全文
摘要:题目链接:http://poj.org/problem?id=1037DescriptionRichard just finished building his new house. Now the only thing the house misses is a cute little woode...
阅读全文
摘要:链接: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...
阅读全文