上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: Big ChocolateMohammad has recently visitedSwitzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine chocolate is very expensive(You know Mohammad is a little BIT stingy!), he could only afford buying one chocolate, albeit a very big one (part of it c 阅读全文
posted @ 2014-01-23 20:13 ~~Snail~~ 阅读(247) 评论(0) 推荐(0) 编辑
摘要: ExponentiationTime Limit:500MSMemory Limit:10000KTotal Submissions:127046Accepted:31014DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems.Th 阅读全文
posted @ 2014-01-21 12:28 ~~Snail~~ 阅读(290) 评论(0) 推荐(0) 编辑
摘要: ExponentiationProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems.This problem requires that you write a program to compute the exact value ofRnwhereRis 阅读全文
posted @ 2014-01-21 12:24 ~~Snail~~ 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Problem E: Automatic EditingSource file:autoedit.{c,cpp,java,pas}Input file:autoedit.inOutput file:autoedit.outText-processing tools likeawkandsedallow you to automatically perform a sequence of editing operations based on a script. For this problem we consider the specific case in which we want to 阅读全文
posted @ 2014-01-20 17:20 ~~Snail~~ 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Immediate DecodabilityAn encoding of a set of symbols is said to beimmediatelydecodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all codes are in binary, that no two codes within a set of codes are the same, that each code has at leas 阅读全文
posted @ 2014-01-20 11:29 ~~Snail~~ 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Problem B: Andy's First DictionaryTime limit: 3 secondsAndy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, not quite enough. Instead of thinking up all the words himself, he has a briliant idea. From 阅读全文
posted @ 2014-01-20 09:39 ~~Snail~~ 阅读(562) 评论(0) 推荐(0) 编辑
摘要: Problem ADecode the tapeTime Limit: 1 second"Machines take me by surprise with great frequency."Alan TuringYour boss has just unearthed a roll of old computer tapes. The tapes have holes in them and might contain some sort of useful information. It falls to you to figure out what is writte 阅读全文
posted @ 2014-01-19 23:24 ~~Snail~~ 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Excuses, Excuses!Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time required listening to goofy excuses, Judge Ito has asked that you write a program that will search for a list of keywords in 阅读全文
posted @ 2014-01-19 23:09 ~~Snail~~ 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Artificial Intelligence?Physics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils have to read and understand the problem first!So they don't state a problem like ``U=10V, I=5A, P=?" but rather like ``You have an 阅读全文
posted @ 2014-01-19 22:16 ~~Snail~~ 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Problem IAutomatic PoetryInput:standard inputOutput:standard outputTime Limit:2 secondsMemory Limit:32 MB“Oh God”, Lara Croft exclaims, “it’sone of these dumb riddles again!”In Tomb Raider XIV, Lara is, as ever, gunning her way through ancient Egyptian pyramids, prehistoric caves and medival hallway 阅读全文
posted @ 2014-01-19 10:13 ~~Snail~~ 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Power of CryptographyBackgroundCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers modulo functions of these primes. Work in this area has resulted in the practical use of results from number theory and other branches of mathematics once con 阅读全文
posted @ 2014-01-14 22:17 ~~Snail~~ 阅读(145) 评论(0) 推荐(0) 编辑
摘要: The ? 1 ? 2 ? ... ? n = k problemThe problemGiven the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k? 1 ? 2 ? ... ? n = kFor example: to obtaink = 12, the expression to be used will be:- 1 + 2 + 3 + 4 + 5 + 6 - 7 = 12with 阅读全文
posted @ 2014-01-14 11:59 ~~Snail~~ 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Secret ResearchAt a certain laboratory results of secret research are thoroughly encrypted. A result of a single experiment is stored as an information of its completion:`positive result', `negative result', `experiment failed' or `experiment not completed'The encrypted result consti 阅读全文
posted @ 2014-01-14 11:11 ~~Snail~~ 阅读(204) 评论(0) 推荐(0) 编辑
摘要: The SnailA snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slides down 1 foot at night while sleeping. The snail has a fatigue factor of 10%, which means that on each successive day the snail climbs 10%3 = 0.3 feet less than 阅读全文
posted @ 2014-01-14 10:56 ~~Snail~~ 阅读(189) 评论(0) 推荐(0) 编辑
摘要: The Cat in the HatBackground(An homage to Theodore Seuss Geisel)The Cat in the Hat is a nasty creature,But the striped hat he is wearing has a rather nifty feature.With one flick of his wrist he pops his top off.Do you know what's inside that Cat's hat?A bunch of small cats, each with its ow 阅读全文
posted @ 2014-01-13 11:33 ~~Snail~~ 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Box of BricksLittle Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall!'', he tells his older sister Alice. ``Nah, you should make all stacks the same height. Then you would have a real wall.' 阅读全文
posted @ 2014-01-13 10:50 ~~Snail~~ 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Cube paintingWe have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. The cube's faces are numbered as in Figure 1.Figure 1.Since a cube has 6 faces, our machine can paint a face-numbered cube indiffere 阅读全文
posted @ 2014-01-06 11:25 ~~Snail~~ 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Problem A.Ant on a ChessboardBackgroundOne day, an ant called Alice came to an M*M chessboard. She wanted to go around all the grids. So she began to walk along the chessboard according to this way: (you can assume that her speed is one grid per second)At the first second, Alice was standing at (1,1 阅读全文
posted @ 2014-01-05 11:31 ~~Snail~~ 阅读(190) 评论(0) 推荐(0) 编辑
摘要: PalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string"ABCDEDCBA"is a palindrome because it is the same when the string is read from left to right as when the string is read from right to left.A mirrored string is a s 阅读全文
posted @ 2014-01-05 10:44 ~~Snail~~ 阅读(210) 评论(0) 推荐(0) 编辑
摘要: OverflowWrite a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of the expression is too large to be represented as a ``normal'' signed integer (typeintegerif you are working Pascal, typeintif you are working 阅读全文
posted @ 2014-01-05 10:15 ~~Snail~~ 阅读(189) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页