水题
文章平均质量分 71
Stand_over_sun
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hduoj1002,A + B Problem II, 大数加法,经典
A + B Problem IIProblem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. InputThe first line of the input contains an i原创 2012-10-14 13:07:43 · 1285 阅读 · 0 评论 -
hduoj1005,Number Sequence,水题,第一反应暴力求解,会超时,其实有捷径
Number SequenceProblem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the value o原创 2012-10-14 13:43:00 · 1852 阅读 · 0 评论 -
hduoj1048,The Hardest Problem Ever,标题笑了,增加自信题
The Hardest Problem EverProblem DescriptionJulius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order for him to survive, he原创 2012-10-14 16:29:24 · 683 阅读 · 0 评论 -
hduoj1095,A+B for Input-Output Practice (VII)
A+B for Input-Output Practice (VII)Problem DescriptionYour task is to Calculate a + b. InputThe input will consist of a series of pairs of integers a and b, separated by a space, one pair of原创 2012-10-15 09:17:25 · 913 阅读 · 0 评论 -
hduoj2045,不容易系列之(3)—— LELE的RPG难题,递推水题
不容易系列之(3)—— LELE的RPG难题Problem Description人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即"可乐"),经过多方打探,某资深Cole终于知道了原因,原来,LELE最近研究起了著名的RPG难题:有排成一行的n个方格,用红(Red)、粉(Pink)、绿(Green)三色涂每个格子,每格涂一色,要求原创 2012-10-15 09:19:48 · 711 阅读 · 0 评论 -
hduoj2046,骨牌铺方格,递推水题
骨牌铺方格在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出铺放方案的总数.例如n=3时,为2× 3方格,骨牌的铺放方案有三种,如下图:Input输入数据由多行组成,每行包含一个整数n,表示该测试实例的长方形方格的规格是2×n (0 Output对于每个测试实例,请输出铺放方案的总数,每个实例的输出占一行。 Sample Input原创 2012-10-15 09:20:27 · 464 阅读 · 0 评论 -
POJ2255,Tree Recovery,二叉树重建
Tree RecoveryDescriptionLittle Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in the nodes. This is原创 2012-10-16 07:43:36 · 513 阅读 · 0 评论 -
POJ2159,Ancient Cipher,水题,简单的思路
Ancient CipherDescriptionAncient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and原创 2012-10-16 07:44:31 · 772 阅读 · 0 评论 -
POJ1503,Integer Inquiry,与hdu1047一样。下面加上另外几种方法
Integer InquiryDescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of原创 2012-10-16 07:44:49 · 486 阅读 · 0 评论 -
POJ1083,Moving Tables,好纠结的题
Moving TablesDescriptionThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure. The floor has 200 rooms each on the north si原创 2012-10-16 07:45:21 · 419 阅读 · 0 评论 -
POJ1007,DNA Sorting,排序水题
DNA SortingDescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAA原创 2012-10-16 07:45:44 · 537 阅读 · 0 评论 -
POJ2739,Sum of Consecutive Prime Numbers,连续素数相加和,水过
Sum of Consecutive Prime NumbersDescriptionSome positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive intege原创 2012-10-16 17:19:59 · 579 阅读 · 0 评论 -
POJ3006,Dirichlet's Theorem on Arithmetic Progressions,狄利克雷定理,题目看懂就没什么
Dirichlet's Theorem on Arithmetic ProgressionsDescriptionIf a and d are relatively prime positive integers, the arithmetic sequence beginning with a and increasing by d, i.e., a, a + d, a + 2d,原创 2012-10-16 18:31:10 · 1877 阅读 · 0 评论 -
POJ3299,Humidex,看懂题目,有道词典,您的code好帮手
HumidexDescriptionAdapted from Wikipedia, the free encyclopediaThe humidex is a measurement used by Canadian meteorologists to reflect the combined effect of heat and humidity. It differs from t原创 2012-10-16 18:41:01 · 877 阅读 · 0 评论 -
POJ2262,Goldbach's Conjecture,哥德巴赫猜想水过
Goldbach's ConjectureDescriptionIn 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in which he made the following conjecture: Every even number greate原创 2012-10-16 16:57:44 · 1006 阅读 · 0 评论 -
POJ3030,Nasty Hacks,每天早上水一题有益身心健康
Nasty HacksDescriptionYou are the CEO of Nasty Hacks Inc., a company that creates small pieces of malicious software which teenagers may use to fool their friends. The company has just finis原创 2012-11-07 18:26:21 · 549 阅读 · 0 评论 -
POJ2606,Rabbit hunt,同斜率,照抄1118
Rabbit huntDescriptionA good hunter kills two rabbits with one shot. Of course, it can be easily done since for any two points we can always draw a line containing the both. But killing three原创 2012-11-19 21:27:46 · 559 阅读 · 0 评论 -
POJ1046,Color Me Less,心情不爽就去切水
Color Me LessDescriptionA color reduction is a mapping from a set of discrete colors to a smaller one. The solution to this problem requires that you perform just such a mapping in a standard原创 2012-11-19 21:24:52 · 715 阅读 · 0 评论 -
hduoj1093,A+B for Input-Output Practice (V)
A+B for Input-Output Practice (V)Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Each line原创 2012-10-14 16:48:40 · 1549 阅读 · 2 评论 -
hduoj1091,A+B for Input-Output Practice (III)
A+B for Input-Output Practice (III)Problem DescriptionYour task is to Calculate a + b. InputInput contains multiple test cases. Each test case contains a pair of integers a and b, one pair o原创 2012-10-14 16:44:47 · 620 阅读 · 0 评论 -
hduoj1071,The area,数学水题,二次方程求解,积分
The areaProblem 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 are原创 2012-10-14 16:34:48 · 649 阅读 · 0 评论 -
hduoj1089,A+B for Input-Output Practice (I),著名的A+B,水死你
A+B for Input-Output Practice (I)Problem DescriptionYour task is to Calculate a + b.Too easy?! Of course! I specially designed the problem for acm beginners. You must have found that some prob原创 2012-10-14 16:40:18 · 1064 阅读 · 0 评论 -
hduoj1090,A+B for Input-Output Practice (II)
A+B for Input-Output Practice (II)Problem DescriptionYour task is to Calculate a + b. InputInput contains an integer N in the first line, and then N lines follow. Each line consists of a pai原创 2012-10-14 16:41:54 · 750 阅读 · 0 评论 -
hduoj1092,A+B for Input-Output Practice (IV)
A+B for Input-Output Practice (IV)Problem DescriptionYour task is to Calculate the sum of some integers. InputInput contains multiple test cases. Each test case contains a integer N, and the原创 2012-10-14 16:46:50 · 890 阅读 · 0 评论 -
hduoj1094,A+B for Input-Output Practice (VI)
A+B for Input-Output Practice (VI)Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains multiple test cases, and one case one line. Each case starts with原创 2012-10-15 09:17:06 · 526 阅读 · 0 评论 -
hduoj1096,A+B for Input-Output Practice (VIII)
A+B for Input-Output Practice (VIII)Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Each l原创 2012-10-15 09:17:42 · 1119 阅读 · 0 评论 -
hduoj1465,不容易系列一,水题,递推求解
不容易系列之一Problem Description大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了!做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加难了,就像花钱总是比挣钱容易的道理一样。话虽这样说,我还是要告诉大家,要想失败到一定程度也是不容易的。比如,我高中的时候,就有一个神奇的女生,在英语考试的时候,竟然把40个单项选择题全部做错了!大家都学原创 2012-10-15 09:18:48 · 466 阅读 · 0 评论 -
hduoj2042,不容易系列之二,递推水题
不容易系列之二Problem Description你活的不容易,我活的不容易,他活的也不容易。不过,如果你看了下面的故事,就会知道,有位老汉比你还不容易。重庆市郊黄泥板村的徐老汉(大号徐东海,简称XDH)这两年辛辛苦苦养了不少羊,到了今年夏天,由于众所周知的高温干旱,实在没办法解决牲畜的饮水问题,就决定把这些羊都赶到集市去卖。从黄泥板村到交易地点要经过N个收费站,按说这收费站和徐老汉原创 2012-10-15 09:19:29 · 506 阅读 · 0 评论 -
hduoj2049,不容易系列之(4)——考新郎,递推题,用到排列组合的一些知识
不容易系列之(4)——考新郎国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的:首先,给每位新娘打扮得几乎一模一样,并盖上大大的红盖头随机坐成一排;然后,让各位新郎寻找自己的新娘.每人只准找一个,并且不允许多人找一个.最后,揭开盖头,如果找错了对象就要当众跪搓衣板...看来做新郎也不是容原创 2012-10-15 09:20:45 · 582 阅读 · 0 评论 -
hduoj2050,折线分割平面,递推题
折线分割平面Problem Description我们看到过很多直线分割平面的题目,今天的这个题目稍微有些变化,我们要求的是n条折线分割平面的最大数目。比如,一条折线可以将平面分成两部分,两条折线最多可以将平面分成7部分,具体如下所示。Input输入数据的第一行是一个整数C,表示测试实例的个数,然后是C 行数据,每行包含一个整数n(0Output对于每个测试实例,请原创 2012-10-15 09:21:00 · 777 阅读 · 0 评论 -
POJ1000,A+B Problem,试水题,没什么好说的
A+B ProblemDescriptionCalculate a+bInputTwo integer a,b (0OutputOutput a+bSample Input1 2Sample Output3HintQ: Where are the input and the output? A: Your prog原创 2012-10-15 09:47:05 · 860 阅读 · 0 评论 -
POJ1003,Hangover,数学题,题目看懂就没什么
HangoverDescriptionHow 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 p原创 2012-10-15 09:52:33 · 755 阅读 · 0 评论 -
POJ1004,Financial Management,水题,注意格式控制
Financial ManagementDescriptionLarry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold o原创 2012-10-15 10:13:46 · 605 阅读 · 0 评论 -
POJ1005,I Think I Need a Houseboat,数学水题
I Think I Need a HouseboatDescriptionFred 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 Lo原创 2012-10-15 10:18:41 · 502 阅读 · 0 评论 -
hduoj1000,A + B Problem,适应
A + B ProblemProblem DescriptionCalculate A + B. InputEach line will contain two integers A and B. Process to end of file. OutputFor each case, output A + B in one line. Sample Inp原创 2012-10-14 12:33:20 · 1207 阅读 · 0 评论 -
hduoj1001,Sum Problem,前期继续水
Sum ProblemProblem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n. InputThe input will con原创 2012-10-14 12:55:39 · 735 阅读 · 0 评论 -
hduoj1008,Elevator,水,考虑当前楼层与下一楼层的情况
ElevatorProblem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, i原创 2012-10-14 13:45:57 · 623 阅读 · 0 评论 -
hduoj1047,Integer Inquiry,大数加法,跟poj某一题一样,再谈
Integer InquiryProblem DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various s原创 2012-10-14 16:22:51 · 524 阅读 · 0 评论 -
POJ1207,The 3n + 1 problem,水输出要注意...
The 3n + 1 problemDescriptionProblems 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 analyz原创 2012-11-19 21:30:52 · 595 阅读 · 0 评论
分享