摘要: 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 漂木 阅读(229) 评论(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 漂木 阅读(266) 评论(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 漂木 阅读(158) 评论(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 漂木 阅读(165) 评论(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 漂木 阅读(177) 评论(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 漂木 阅读(226) 评论(0) 推荐(0) 编辑