随笔分类 -  JOJ水题

摘要:2154: Hungry RabbitsResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K1231423StandardA group of hungry rabbits had got a basket of carrots, but these carrots isn't enough for all the rabbits to stay alive. So they had a meeting to solve the problem. They determined to drive off some rabbi 阅读全文
posted @ 2012-05-03 22:33 漂木 阅读(340) 评论(0) 推荐(0)
摘要:2137: Ask & AnswerResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K908477Standard请回答以下问题____年7月,中国共*产*党第一次全国代表大会在上海召开。____年7月7日,卢沟桥事变爆发,日本侵略军发动了全面侵华战争。____年8月,日本帝国主义宣布无条件投降,中国人民的抗日战争取得了伟大胜利。____年4月23日,人民解放军攻占南京,宣告了国民党反动统治的覆灭。____年10月1日,中华人民共和国宣告成立。____年12月,中国共*产*党召开的党的十一届三中全会。中国政府于____年7 阅读全文
posted @ 2012-02-21 12:45 漂木 阅读(167) 评论(0) 推荐(0)
摘要:1032: DeckResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE15s8192K1893628StandardScenarioA single playing card can be placed on a table, carefully, so that the short edges of the card are parallel to the table's edge, and half the length of the card hangs over the edge of the table. If the car 阅读全文
posted @ 2012-02-02 15:05 漂木 阅读(311) 评论(0) 推荐(0)
摘要:1146: Word ReversalResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K2658690StandardFor each list of words, output a line with each word reversed without changing the order of the words.This problem contains multiple test cases!The first line of a multiple input is an integer N, then a blank 阅读全文
posted @ 2012-01-27 23:32 漂木 阅读(240) 评论(0) 推荐(0)
摘要:1024: Function Run FunResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K28941177StandardWe all love recursion! Don't we?Consider a three-parameter recursive function w(a, b, c):if a <= 0 or b <= 0 or c <= 0, then w(a, b, c) returns:1if a > 20 or b > 20 or c > 20, then w( 阅读全文
posted @ 2012-01-27 22:44 漂木 阅读(282) 评论(0) 推荐(0)
摘要:1006: All your baseResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K59671984StandardGiven a base, and two positive integers in decimal (base 10), convert the two numbers to the new base, add them, and display their sum in the new base.InputThree positive integers denoting the base and the tw 阅读全文
posted @ 2012-01-27 21:59 漂木 阅读(174) 评论(0) 推荐(0)
摘要:1277: Fibonacci FreezeResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K2367561StandardThe Fibonacci numbers (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ...) are defined by the recurrence:Write a program to calculate the Fibonacci Numbers.Input and OutputThe input to your program would be a sequenc 阅读全文
posted @ 2012-01-27 17:54 漂木 阅读(176) 评论(0) 推荐(0)
摘要:1011: If only I had a Venn diagramResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s524288K39901595StandardThe symmetric difference of two sets is the set of elements belonging to one but not both of the two sets. For example, if we have two sets A = {1,2,3,4,5} and B = {3,4,5,6,7,8}, then the sym 阅读全文
posted @ 2012-01-27 16:04 漂木 阅读(191) 评论(0) 推荐(0)
摘要:[JPoints: 381, Sender!: 0/0]1008: Go hang a salami, IResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K86581612StandardGiven a character string, determine if it is a palindrome. A palindrome is a word or phrase that reads the same forwards and backwards, like mom or noon. For our purposes, pa 阅读全文
posted @ 2012-01-27 15:16 漂木 阅读(232) 评论(0) 推荐(0)
摘要:2090: Clay BullyResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K421266StandardMs. Terry is a pre-school art teacher who likes to have her students work with clay. One of her assignments is to form a lump of clay into a block and then measure the dimensions of the block. However, in every cl 阅读全文
posted @ 2012-01-25 22:50 漂木 阅读(192) 评论(0) 推荐(0)
摘要:2230: Peter's smokesResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE1s8192K976410StandardPeter has n cigarettes. He smokes them one by one keeping all the butts. Out of k > 1 butts he can roll a new cigarette.How many cigarettes can Peter have?Input SpecificationInput is a sequence of lines 阅读全文
posted @ 2012-01-25 21:57 漂木 阅读(167) 评论(0) 推荐(0)
摘要:1023: Digital RootsResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K63851371StandardBackgroundThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains tw 阅读全文
posted @ 2012-01-25 18:14 漂木 阅读(195) 评论(0) 推荐(0)
摘要:1175: The Binomial FunctionResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K2837844Standard1st Jilin University ACM International Collegiate Programming ContestIn this problem, you are to write a program to make the value ofthe binomial function:where n and m are integers.Input Specification 阅读全文
posted @ 2012-01-24 22:18 漂木 阅读(210) 评论(0) 推荐(0)
摘要:2485: Welcome, 2008ResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s65536K1454677StandardFor Chinese people, 2008 is a special year. The 29th Olympic Games will be held in Beijing. In order to express our enthusiasm, we draw a big symbol '8'.InputEach line of input is a positive integer N 阅读全文
posted @ 2011-11-02 18:25 漂木 阅读(205) 评论(0) 推荐(0)
摘要:2471: String triangleResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s65536K3073611StandardYou are asked to draw a right-angle triangle, the given materials is a special word. Just see the sample for detail.InputThe first line of each test case is a positive integer n. n is zero means the end of. 阅读全文
posted @ 2011-11-02 18:24 漂木 阅读(213) 评论(0) 推荐(0)
摘要:1020: u Calculate eResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K60981521StandardBackgroundA simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very accurate approximations of e using relatively small values of n.OutputOutput the approximati. 阅读全文
posted @ 2011-11-02 18:14 漂木 阅读(234) 评论(0) 推荐(0)