Financial ManagementTime Limit: 1 Second Memory Limit: 32768 KBLarry 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 of his financial
ConversionsTime Limit: 1 Second Memory Limit: 32768 KBConversion between the metric and English measurement systems is relatively simple. Often, it involves either multiplying or dividing by a constant. You must write a program that converts
Time Limit: 2 Seconds Memory Limit: 65536 KBGiven a positive integer n, print out the positions of all 1's in its binary representation. The position of the least significant bit is 0.Example The positions of 1's in the binary representation
這兩天比較閑,沒有什麼事情做。有一次在網上逛的時候,看到了一篇關於“java初學者JDK”的安裝和環境變數的設定的文章。在講到使用者變數和系統變數的時候想到,其實系統在尋找應用程式的時候是按照%SystemRoot%,系統變數中的Path路徑,使用者變數中的Path路徑來尋找的。於是就有了一下想法。每次啟用應用程式的時候,一般都是點擊在案頭上的應用程式捷徑,或者到應用程式安裝目錄中啟動應用程式。但是如果你想啟用word,就可以win + R
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
原題:ParencodingsTime Limit: 1 Second Memory Limit: 32768 KBLet S = s1 s2 ... s2n be a well-formed string of parentheses. S can be encoded in two different ways:By an integer sequence P = p1 p2 ... pn where pi is the number of left parentheses
Easy TaskTime Limit: 1 Second Memory Limit: 32768 KBCalculating the derivation of a polynomial is an easy task. Given a function f(x) , we use (f(x))' to denote its derivation. We use x^n to denote xn. To calculate the derivation of a
ZOJ Problem Set - 2932The Seven Percent SolutionTime Limit: 1 Second Memory Limit: 32768 KBUniform Resource Identifiers (or URIs) are strings like http://icpc.baylor.edu/icpc/, mailto:foo@bar.org, ftp://127.0.0.1/pub/linux, or even
Time Limit: 2 Seconds Memory Limit: 65536 KBA certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked.One night, the jailer gets bored and decides to play a game.
真的是不行了,很長時間沒有玩過這玩意兒了,一下子上來,還真是很不習慣。碰了很多壁,終於碰到了這麼一道相對比較簡單的題目,也算是撿回一點點自信吧,希望以後會越走越好。 下面先給出原題:ZOJ Problem Set - 1045HangOverTime Limit: 1 Second Memory Limit: 32768 KBHow far can you make a stack of cards overhang a table? If you have
很久沒有再做演算法題了,做作演算法題,就當是休閑娛樂了。下面是一道簡單的題目,難題我也沒有能力解,只能拿簡單題開刀了。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 (if that result is greater than 100) take
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