随笔分类 - Online Judge
摘要:ZOJ Problem Set - 2947AbbreviationTime Limit:1 Second Memory Limit:32768 KBWhen a Little White meets another Little White:Little White A: (Surprised) !Little White B: ?Little White A: You Little White know "SHDC"? So unbelievable!Little White B: You are little white! Little white is you! W
阅读全文
摘要:ZOJ Problem Set - 2932The Seven Percent SolutionTime Limit:1 Second Memory Limit:32768 KBUniform Resource Identifiers (or URIs) are strings likehttp://icpc.baylor.edu/icpc/,mailto:foo@bar.org,ftp://127.0.0.1/pub/linux, or even justreadme.txtthat are used to identify a resource, usually on the Intern
阅读全文
摘要:ZOJ Problem Set - 2970Faster, Higher, StrongerTime Limit:1 Second Memory Limit:32768 KBIn the year 2008, the 29th Olympic Games will be held in Beijing. This will signify the prosperity of China and Beijing Olympics is to be a festival for people all over the world as well.The motto of Olympic Games
阅读全文
摘要:Daffodil numberTime Limit:1 Second Memory Limit:32768 KBThe daffodil number is one of the famous interesting numbers in the mathematical world. A daffodil number is a three-digit number whose value is equal to the sum of cubes of each digit.For example. 153 is a daffodil as 153 = 13+ 53+ 33.InputThe
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KBFor 2 non-negative integers x and y, f(x, y) is defined as the number of different bits in the binary format of x and y. For example, f(2, 3)=1, f(0, 3)=2, f(5, 10)=4.Now given 2 sets of non-negative integers A and B, for each integer b in B, you should fi
阅读全文
摘要:The Circumference of the Circle Time Limit: 1 Second Memory Limit: 32768 KB To calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don't?...
阅读全文
摘要:很久没有再做算法题了,做作算法题,就当是休闲娱乐了。下面是一道简单的题目,难题我也没有能力解,只能拿简单题开刀了。 Rounders Time Limit: 1 Second Memory Limit: 32768 KB Introduction For a given number, if greater than ten, round it to the nearest ten, then (...
阅读全文
摘要:很久没有做算法题了,其实做一些算法题对自己也是有很大的帮助的,至少再闲暇无聊的时候,可以消磨时间也是一件很不错的休闲娱乐活动。下面是一道简单题,热身用的,呵呵,以后有空我要多做做这类算法题了,一方面娱乐,一方面也是扩展自己思维的一个很不错的选择。 原题如下: ZOJ Problem Set - 1113 u Calculate e Time Limit: 1 Second ...
阅读全文
摘要:长时间不做算法题了,这么简单的题目都然给我纠结了那么久,尴尬……先把题目贴出来,稍作分析,相信小孩子都可以看得懂了。原题:Goldbach's ConjectureTime Limit: 1 Second Memory Limit: 32768 KBGoldbach's Conjecture: For any even number n greater than or ...
阅读全文
摘要:原题: Parencodings Time Limit: 1 Second Memory Limit: 32768 KB Let S = s1 s2 ... s2n be a well-formed string of parentheses. S can be encoded in two different ways: By an ...
阅读全文
摘要:原题如下: The Worm Turns Time Limit: 1 Second Memory Limit: 32768 KB Worm is an old computer game. There are many versions, but all involve maneuvering a "worm" a...
阅读全文
摘要:Financial Management Time Limit: 1 Second Memory Limit: 32768 KB Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to h...
阅读全文
摘要: 真的是不行了,很长时间没有玩过这玩意儿了,一下子上来,还真是很不习惯。碰了很多壁,终于碰到了这么一道相对比较简单的题目,也算是捡回一点点自信吧,希望以后会越走越好。 下面先给出原题: ZOJ Problem Set - 1045 HangOver Time Limit: 1 Sec...
阅读全文
摘要: 程序设计是编写代码的核心,一个算法的好坏,很大程度上会影响一个完整程序的运行效率。所以,多多进行程序设计的练习是很有必要的。程序设计的练习,利用Online judge这类平台再好不过了,我就就近取材了,直接到了浙大的Online judge来练练吧。不知道能解多少题,以后就都记录在这里好了,祝自己好运,嘿嘿。 ...
阅读全文
浙公网安备 33010602011771号