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... 阅读全文
posted @ 2015-08-30 16:24 ~Arno 阅读(134) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5305Problem DescriptionThere arenpeople andmpairs of friends. For every pair of friends, they can choos... 阅读全文
posted @ 2015-08-30 15:50 ~Arno 阅读(104) 评论(0) 推荐(0) 编辑
摘要:题目链接: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... 阅读全文
posted @ 2015-08-29 22:20 ~Arno 阅读(130) 评论(0) 推荐(0) 编辑
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=5414Problem DescriptionCRB has two stringssandt.In each step, CRB can select arbitrary charactercofsand i... 阅读全文
posted @ 2015-08-28 17:07 ~Arno 阅读(217) 评论(0) 推荐(0) 编辑
摘要:题目链接: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... 阅读全文
posted @ 2015-08-27 17:35 ~Arno 阅读(117) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-08-26 15:03 ~Arno 阅读(601) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://poj.org/problem?id=1037DescriptionRichard just finished building his new house. Now the only thing the house misses is a cute little woode... 阅读全文
posted @ 2015-08-24 21:45 ~Arno 阅读(277) 评论(0) 推荐(0) 编辑
摘要:链接: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) 编辑