摘要: Problem DescriptionMany classmates said to me that A+B is must needs.If you can’t AC this problem, you would invite me for night meal. ^_^InputInput m... 阅读全文
posted @ 2014-11-09 23:20 zqxLonely 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThere are at least P% and at most Q% students of HDU are ACMers, now I want to know how many students HDU have at least?InputThe in... 阅读全文
posted @ 2014-11-09 23:07 zqxLonely 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Problem Description假设:S1 = 1S2 = 12S3 = 123S4 = 1234.........S9 = 123456789S10 = 1234567891S11 = 12345678912............S18 = 123456789123456789......... 阅读全文
posted @ 2014-11-09 21:39 zqxLonely 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionAre you excited when you see the title "AC" ? If the answer is YES , AC it ;You must learn these two combination formulas in the sc... 阅读全文
posted @ 2014-11-09 21:14 zqxLonely 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Problem Description杭州电子科技大学即将迎来50周年的校庆,作为校庆委员会成员的我被上级要求设计一座神秘的建筑物来迎合校庆,因此我苦思冥想了一个月,终于设计出了一套方案,这座建筑物有点象古老埃及的金字塔,不过这个神秘建筑的根基是三角形的而不是矩形的,从数学的专业角度来讲,它是四面体... 阅读全文
posted @ 2014-11-09 19:30 zqxLonely 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: Problem Description给你n个整数,请按从大到小的顺序输出其中前m大的数。Input每组测试数据有两行,第一行有两个数n,m(0 2 3 void quickSort(int a[],int left,int right); 4 int array[1000001]; 5 6 i... 阅读全文
posted @ 2014-11-09 18:14 zqxLonely 阅读(264) 评论(0) 推荐(0) 编辑
摘要: Problem Description给你两个集合,要求{A} + {B}.注:同一个集合中不会有两个相同的元素.Input每组输入数据分为三行,第一行有两个数字n,m(0 2 3 int main(){ 4 int array[20001]; 5 int n; 6 int... 阅读全文
posted @ 2014-11-09 15:10 zqxLonely 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Problem Descriptionxiaoou33对既是素数又是回文的数特别感兴趣。比如说151既是素数又是个回文。现在xiaoou333想要你帮助他找出某个范围内的素数回文数,请你写个程序找出 a 跟b 之间满足条件的数。(5 2 #include 3 #include 4 5 #de... 阅读全文
posted @ 2014-11-09 14:47 zqxLonely 阅读(659) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionTomorrow is contest day, Are you all ready?We have been training for 45 days, and all guys must be tired.But , you are so lucky com... 阅读全文
posted @ 2014-11-09 13:51 zqxLonely 阅读(388) 评论(0) 推荐(0) 编辑
摘要: Problem Description挂盐水的时候,如果滴起来有规律,先是滴一滴,停一下;然后滴二滴,停一下;再滴三滴,停一下...,现在有一个问题:这瓶盐水一共有VUL毫升,每一滴是D毫升,每一滴的速度是一秒(假设最后一滴不到D毫升,则花费的时间也算一秒),停一下的时间也是一秒这瓶水什么时候能挂完... 阅读全文
posted @ 2014-11-09 13:15 zqxLonely 阅读(288) 评论(0) 推荐(0) 编辑
摘要: Problem Description大家提到LTC都佩服的不行,不过,如果竞赛只有这一个题目,我敢保证你和他绝对在一个水平线上!你的任务是:计算方程x^2+y^2+z^2= num的一个正整数解。Input输入数据包含多个测试实例,每个实例占一行,仅仅包含一个小于等于10000的正整数num。Ou... 阅读全文
posted @ 2014-11-09 12:36 zqxLonely 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Problem Description完数的定义:如果一个大于1的正整数的所有因子之和等于它的本身,则称这个数是完数,比如6,28都是完数:6=1+2+3;28=1+2+4+7+14。本题的任务是判断两个正整数之间完数的个数。Input输入数据包含多行,第一行是一个正整数n,表示测试实例的个数,然后... 阅读全文
posted @ 2014-11-09 12:29 zqxLonely 阅读(1488) 评论(0) 推荐(0) 编辑