- 博客(21)
- 资源 (1)
- 收藏
- 关注
原创 YT14-HDU-求范围内多个数经过变换后的那个最大值
Problem DescriptionProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property o
2015-02-25 13:20:22 953
原创 YT14-HDU-满足(a^2+b^2 +m)/(ab)的(a,b)有多少
Problem DescriptionGiven two integers n and m, count the number of pairs of integers (a,b) such that 0 This problem contains multiple test cases!The first line of a multiple input is an inte
2015-02-25 13:14:28 2351 2
原创 YT14-HDU-命中注定的另一半
Problem Description七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另一半是谁吗?那就按照告示上的方法去找吧!"人们纷纷来到告示前,都想知道谁才是自己的另一半.告示如下:数字N的因子就是所有比N小又能被N整除的所有正整数,如12的因子有1,2,3,4,6.你想知道你的另一半吗?Input输
2015-02-25 13:03:09 908
原创 YT14-HDU-三分查找求F(x)的最小值
Problem DescriptionNow, here is a fuction: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 Can you find the minimum value when x is between 0 and 100.InputThe first line of the input contains an in
2015-02-25 12:06:51 2015
原创 YT14-HDU-在0-100间找到那个正确的x
Problem DescriptionNow,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;Now please try your lucky.InputThe first line of the input contains a
2015-02-25 11:28:21 1374
原创 YT14-HDU-S与D的故事
Problem DescriptionThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He
2015-02-24 21:13:19 1642
原创 YT14-HDU-能被3整除的斐波那契数
Problem DescriptionThere 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 lines, each containing an integer
2015-02-24 19:51:22 3376
原创 YT14-HDU-油井的种类
Problem DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates
2015-02-24 19:22:50 1504
原创 YT14-HDU-#是@与.爱情的那堵墙
Problem DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adja
2015-02-24 19:12:51 1169
原创 YT14-HDU-机器人走表格
Problem DescriptionA robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructio
2015-02-24 16:54:51 811
原创 YT14-HDU-求1/n的第m位数
Problem DescriptionNow give you two integers n m, you just tell me the m-th number after radix point in 1/n,for example n=4,the first numble after point is 2,the second is 5,and all 0 followedInpu
2015-02-09 23:20:05 1581
原创 YT14-HDU-找新朋友
Problem Description新年快到了,“猪头帮协会”准备搞一个聚会,已经知道现有会员N人,把会员从1到N编号,其中会长的号码是N号,凡是和会长是老朋友的,那么该会员的号码肯定和N有大于1的公约数,否则都是新朋友,现在会长想知道究竟有几个新朋友?请你编程序帮会长计算出来。Input第一行是测试数据的组数CN(Case number,1Output对于每一个N,输出一行
2015-02-09 22:31:18 1313
原创 YT14-HDU-Eddy的彩票
Problem DescriptionEddy's company publishes a kind of lottery.This set of lottery which are numbered 1 to n, and a set of one of each is required for a prize .With one number per lottery, how many
2015-02-06 08:00:44 1796
原创 YT14-HDU-取余
Problem DescriptionAs we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B.To make the problem easie
2015-02-05 22:32:14 822
原创 YT14-HDU-叠加的卡片
Problem DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be per
2015-02-05 22:30:58 1190
原创 YT14-HDU-圆桌会议
Problem DescriptionHDU ACM集训队的队员在暑假集训时经常要讨论自己在做题中遇到的问题.每当面临自己解决不了的问题时,他们就会围坐在一张圆形的桌子旁进行交流,经过大家的讨论后一般没有解决不了的问题,这也只有HDU ACM集训队特有的圆桌会议,有一天你也可以进来体会一下哦:),在一天在讨论的时候,Eddy想出了一个极为古怪的想法,如果他们在每一分钟内,一对相邻的两个ACM队
2015-02-05 22:29:19 883
原创 YT14-HDU-洗牌的规律
Problem DescriptionEddy是个ACMer,他不仅喜欢做ACM题,而且对于纸牌也有一定的研究,他在无聊时研究发现,如果他有2N张牌,编号为1,2,3..n,n+1,..2n。这也是最初的牌的顺序。通过一次洗牌可以把牌的序列变为n+1,1,n+2,2,n+3,3,n+4,4..2n,n。那么可以证明,对于任意自然数N,都可以在经过M次洗牌后第一次重新得到初始的顺序。编程对于
2015-02-05 22:12:45 780
原创 YT14-HDU-盒子与瓷砖
Problem DescriptionThere is a large room in the Pyramid called Room-of-No-Return. Its floor is covered by rectangular tiles of equal size. The name of the room was chosen because of the very high
2015-02-05 22:05:29 1044 2
原创 YT14-HDU-求抛物线与直线间的面积(积分)
Problem DescriptionIgnatius bought a land last week, but he didn't know the area of the land because the land is enclosed by a parabola and a straight line. The picture below shows the area. Now g
2015-02-05 21:49:43 1189
原创 YT14-HDU-被侵蚀的土地
Problem DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actua
2015-02-03 09:45:33 1053
原创 YT14-HDU-James跳桥
Problem DescriptionOnce again, James Bond is fleeing from some evil people who want to see him dead. Fortunately, he has left a bungee rope on a nearby highway bridge which he can use to escape fr
2015-02-03 08:03:37 1106
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人