- 博客(70)
- 收藏
- 关注
原创 ZOJ1295 Reverse Text
Reverse Text Time Limit: 2 Seconds Memory Limit: 65536 KB In most languages, text is written from left to right. However, there are other languages where text is read and written from right
2013-08-17 21:51:54
843
1
原创 ZOJ1048 Financial Management
Financial Management Time Limit: 2 Seconds Memory Limit: 65536 KB Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. La
2013-08-17 21:49:36
775
原创 ZOJ1001 A + B Problem
A + B Problem Time Limit: 2 Seconds Memory Limit: 65536 KB Calculate a + b Input The input will consist of a series of pairs of integers a and b,separated by a space, one pair of inte
2013-08-17 21:46:25
703
原创 UVa11995 I Can Guess the Data Structure!
Problem I I Can Guess the Data Structure! There is a bag-like data structure, supporting two operations: 1 x Throw an element x into the bag. 2 Take out an element from the bag. Given a seq
2013-08-17 21:42:47
801
原创 UVa10878 Decode the tape
Problem A Decode the tape Time Limit: 1 second "Machines take me by surprise with great frequency." Alan Turing Your boss has just unearthed a roll of old computer tapes. The tape
2013-08-17 21:36:09
875
原创 UVa10361 Automatic Poetry
Problem I Automatic Poetry Input: standard input Output: standard output Time Limit: 2 seconds Memory Limit: 32 MB “Oh God”, Lara Croft exclaims, “it’s one of these dumb riddles again!”
2013-08-17 21:27:50
663
原创 UVa10115 Automatic Editing
Problem E: Automatic Editing Source file: autoedit.{c, cpp, java, pas} Input file: autoedit.in Output file: autoedit.out Text-processing tools like awk and sed allow y
2013-08-17 21:19:54
682
原创 UVa10106 Product
Product The Problem The problem is to multiply two integers X, Y. (0250) The Input The input will consist of a set of pairs of lines. Each line in pair contains one multiplyer. The
2013-08-17 21:12:06
671
原创 UVa10010 Where's Waldorf?
Where's Waldorf? Given a m by n grid of letters, ( ), and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line o
2013-08-17 21:06:57
1096
原创 UVa644 Immediate Decodability
Immediate Decodability An encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this p
2013-08-17 21:02:17
691
原创 UVa537 Artificial Intelligence?
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 underst
2013-08-17 20:50:09
790
原创 UVa465 Overflow
Overflow Write 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 r
2013-08-17 20:45:06
919
原创 UVa424 Integer Inquiry
Integer Inquiry One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of t
2013-08-17 20:30:32
731
原创 UVa409 Excuses, Excuses!
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
2013-08-17 20:24:39
644
原创 UVa401 Palindromes
Palindromes A 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 t
2013-08-17 20:14:39
721
原创 UVa10300 Ecological Premium
Problem A Ecological Premium Input: standard input Output: standard output Time Limit: 1 second Memory Limit: 32 MB German farmers are given a premium depending onthe conditions at their farmyar
2013-08-07 09:20:43
875
原创 UVa10071 Back to High School Physics
Problem B Back to High School Physics Input: standard input Output: standard output A particle has initial velocity and constant acceleration. Ifits velocity after certain time is v then what w
2013-08-07 09:17:34
744
原创 UVa494 Kindergarten Counting Game
Kindergarten Counting Game Everybody sit down in a circle. Ok. Listen to me carefully. ``Woooooo, you scwewy wabbit!'' Now, could someone tell me how many words I just said? Input and
2013-08-07 09:12:28
640
原创 UVa490 Rotating Sentences
Rotating Sentences In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise.So instead of displaying the input sentences from left to right and t
2013-08-07 09:05:53
791
原创 UVa489 Hangman Judge
Hangman Judge In ``Hangman Judge,'' you are to write a program that judges a series of Hangman games. Foreach game, the answer to the puzzle is given as well as the guesses. Rules are the
2013-08-07 08:58:53
598
原创 UVa488 Triangle Wave
Triangle Wave In this problem you are to generate a triangular wave form according to a specified pair ofAmplitude and Frequency. Input and Output The input begins with a single positive i
2013-08-07 08:49:42
1063
原创 UVa458 The Decoder
The Decoder Write a complete program that will correctly decode a set ofcharacters into a valid message. Your program shouldread a given file of a simple coded set of characters and print
2013-08-07 08:45:21
757
原创 UVa694 The Collatz Sequence
The Collatz Sequence An algorithm given by Lothar Collatz produces sequences of integers, and isdescribed as follows: Step 1:Choose an arbitrary positive integer A as the first item int
2013-08-06 22:03:42
755
原创 UVa457 Linear Cellular Automata
Linear Cellular Automata A biologist is experimenting with DNA modification ofbacterial colonies being grown in a linear array of culture dishes. Bychanging the DNA, he is able ``program" th
2013-08-06 21:57:10
677
原创 UVa414 Machined Surfaces
Machined Surfaces An imaging device furnishes digital images of two machined surfaces thateventually will be assembled incontact with each other. The roughness of this final contact is t
2013-08-06 21:40:16
3968
原创 UVa10055 Hashmat the Brave Warrior
Problem A Hashmat the brave warrior Input: standard input Output: standard output Hashmat is a brave warrior whowith his group of young soldiers moves from one place to another to fightagains
2013-08-06 21:34:07
761
原创 UVa10879 Code Refactoring
Problem B Code Refactoring Time Limit: 2 seconds "Harry, my dream is a code waiting to be broken. Break the code, solve the crime." Agent Cooper Several algorithms in modern crypto
2013-08-05 19:08:43
647
原创 UVa10815 Andy's First Dictionary
ProblemB: Andy's First Dictionary Timelimit: 3 seconds Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of word
2013-08-05 19:04:24
798
原创 UVa10785 The Mad Numerologist
The Mad Numerologist Numerology is a science that is used by many people to findout a mans personality, sole purpose of life, desires to experience etc. Somecalculations of numerology are
2013-08-05 18:59:59
690
原创 UVa10420 List of Conquests
Problem B List of Conquests Input:standardinput Output: standard output Time Limit: 2 seconds In Act I, Leporello is tellingDonna Elvira about his master's long list of conquests: ``This is th
2013-08-05 16:55:31
819
原创 UVa10392 Factoring Large Numbers
Problem F: Factoring Large Numbers One of the central ideas behind much cryptography is that factoringlarge numbers is computationally intensive. In this context one mightuse a 100 digit number that
2013-08-05 16:49:54
741
原创 UVa10194 Football (aka Soccer)
Problem A: Football (aka Soccer) The Problem Football the most popular sport in the world (americans insist to call it "Soccer",but we will call it "Football"). As everyone knows, Brasi
2013-08-05 16:40:41
739
原创 UVa10110 Light, more light
Light,more light The Problem There is man named "mabu" for switching on-off light in our University.He switches on-off the lights in a corridor. Every bulb has its own toggle switch. That is
2013-08-05 16:18:25
1077
原创 UVa10061 How many zeros and how many digits?
Problem G How many zeros and how many digits? Input: standard input Output: standard output Given a decimal integer number you willhave to find out how many trailing zeros will be there in its
2013-08-05 16:05:31
1121
原创 UVa10034 Freckles
Problem A: Freckles In an episode of the Dick Van Dyke show, little Richie connects the freckleson his Dad's back to form a picture of the Liberty Bell. Alas, one of thefreckles turns out to be a s
2013-08-05 15:40:44
999
原创 UVa755 487-3279
487-3279 Businesses like to have memorable telephone numbers. One way to make a telephone number memorableis to have it spell a memorable word or phrase. For example, you can call the Univ
2013-08-05 11:28:37
787
原创 UVa568 Just the Facts
Just the Facts The expression N!, read as ``N factorial," denotes the product of the firstN positive integers, where N is nonnegative. So, for example, N N! 0 1 1
2013-08-05 11:09:31
759
原创 UVa550 Multiplying by Rotation
Multiplying by Rotation Warning: Not all numbers in this problem are decimal numbers! Multiplication of natural numbers in general is a cumbersome operation. In somecases however the
2013-08-05 11:01:18
702
原创 UVa299 Train Swapping
Train Swapping At an old railway station, you may still encounter one of the lastremaining ``train swappers''. A train swapper is an employee ofthe railroad, whose sole job it is to rearra
2013-08-05 10:01:09
623
原创 UVa156 Ananagrams
Ananagrams Most crossword puzzle fans are used to anagrams--groupsof words with the same letters in different orders--for exampleOPTS, SPOT, STOP, POTS and POST. Some words however do not
2013-08-05 09:18:19
806
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅