随笔分类 -  HDU

摘要:Problem Description There are n stones numbered from 1 to n.The weight of the i-th stone is i kilograms. We divide the stones into k groups.Each group 阅读全文
posted @ 2019-08-01 09:40 black_hole6 阅读(402) 评论(0) 推荐(0) 编辑
摘要:Problem Description Farmer John keeps a website called ‘FansBlog’ .Everyday , there are many people visited this blog.One day, he find the visits has 阅读全文
posted @ 2019-07-29 17:32 black_hole6 阅读(391) 评论(0) 推荐(0) 编辑
摘要:Tom and Jerry are going on a vacation. They are now driving on a one-way road and several cars are in front of them. To be more specific, there are nn 阅读全文
posted @ 2019-07-22 22:27 black_hole6 阅读(171) 评论(0) 推荐(0) 编辑
摘要:Avin is studying series. A series is called "wave" if the following conditions are satisfied: 1) It contains at least two elements; 2) All elements at 阅读全文
posted @ 2019-07-22 09:35 black_hole6 阅读(744) 评论(0) 推荐(0) 编辑
摘要:度熊面前有一个全是由1构成的字符串,被称为全1序列。你可以合并任意相邻的两个1,从而形成一个新的序列。对于给定的一个全1序列,请计算根据以上方法,可以构成多少种不同的序列。Input这里包括多组测试数据,每组测试数据包含一个正整数NN,代表全1序列的长度。 1≤N≤2... 阅读全文
posted @ 2019-02-17 21:38 black_hole6 阅读(108) 评论(0) 推荐(0) 编辑
摘要:There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2). InputInput consists of a sequence of ... 阅读全文
posted @ 2019-01-20 14:03 black_hole6 阅读(135) 评论(0) 推荐(0) 编辑
摘要:In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of da... 阅读全文
posted @ 2019-01-20 13:44 black_hole6 阅读(205) 评论(0) 推荐(0) 编辑
摘要:The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then th... 阅读全文
posted @ 2019-01-20 13:22 black_hole6 阅读(229) 评论(0) 推荐(0) 编辑
摘要:A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may ... 阅读全文
posted @ 2018-12-10 09:43 black_hole6 阅读(111) 评论(0) 推荐(0) 编辑
摘要:小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 = 11也是素数,所以它是美素数。 给定一个... 阅读全文
posted @ 2018-12-06 23:41 black_hole6 阅读(229) 评论(0) 推荐(0) 编辑
摘要:作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵 但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多少张人民币,才能在给每位老师发工资... 阅读全文
posted @ 2018-12-06 16:48 black_hole6 阅读(417) 评论(0) 推荐(0) 编辑
摘要:The three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this and... 阅读全文
posted @ 2018-12-06 15:44 black_hole6 阅读(187) 评论(0) 推荐(0) 编辑
摘要:The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers i... 阅读全文
posted @ 2018-12-06 14:48 black_hole6 阅读(128) 评论(0) 推荐(0) 编辑

欢迎阅读『HDU』
点击右上角即可分享
微信分享提示