
ZOJ ACM 初级题110题
文章平均质量分 81
wpfengqi
这个作者很懒,什么都没留下…
展开
-
ZOJ 2001 Adding Reversed Numbers
Adding Reversed NumbersTime Limit: 2 Seconds Memory Limit: 65536 KBThe Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedie原创 2012-09-05 16:47:49 · 404 阅读 · 0 评论 -
ZOJ 1402 Magnificent Meatballs
Magnificent MeatballsTime Limit: 2 Seconds Memory Limit: 65536 KBSam and Ella run a catering service. They like to put on a show when serving meatballs to guests seated at round tables. T原创 2012-08-24 12:01:22 · 296 阅读 · 0 评论 -
ZOJ 1394 Polar Explorer
Polar ExplorerTime Limit: 2 Seconds Memory Limit: 65536 KBIntroductionYou are a intrepid 2-dimensional explorer located at the northern polar reaches of a distant 2-dimensional planet原创 2012-08-24 11:51:33 · 590 阅读 · 0 评论 -
ZOJ 1383 Binary Numbers
Binary NumbersTime 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 significan原创 2012-08-24 11:44:11 · 367 阅读 · 0 评论 -
ZOJ 1382 A Simple Task
A Simple TaskTime Limit: 2 Seconds Memory Limit: 65536 KBGiven a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p.ExampleFor n = 24, o = 3原创 2012-08-24 11:35:28 · 730 阅读 · 0 评论 -
ZOJ 1365 Mileage Bank
Mileage BankTime Limit: 2 Seconds Memory Limit: 65536 KBMileage program of ACM (Airline of Charming Merlion) is really nice for the travelers flying frequently. Once you complete a flight原创 2012-08-24 11:30:31 · 390 阅读 · 0 评论 -
ZOJ 1514 Fake Tickets
Fake TicketsTime Limit: 2 Seconds Memory Limit: 65536 KBYour school organized a big party to celebrate your team brilliant win in the prestigious, worldfamous ICPC (International Collegia原创 2012-08-24 19:00:40 · 462 阅读 · 0 评论 -
ZOJ 1414 Number Steps
Number StepsTime Limit: 2 Seconds Memory Limit: 65536 KBStarting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,... as shown in the figure. For example, 1,原创 2012-08-24 18:47:44 · 301 阅读 · 0 评论 -
ZOJ 1405 Tanning Salon
Tanning SalonTime Limit: 2 Seconds Memory Limit: 65536 KBTan Your Hide, Inc., owns several coin-operated tanning salons. Research has shown that if a customer arrives and there are no bed原创 2012-08-24 18:33:31 · 349 阅读 · 0 评论 -
ZOJ 1334 Basically Speaking
Basically SpeakingTime Limit: 2 Seconds Memory Limit: 65536 KBThe Really Neato Calculator Company, Inc. has recently hired your team to help design their Super Neato Model I calculator. A原创 2012-08-24 09:00:08 · 610 阅读 · 0 评论 -
ZOJ 1331 Perfect Cubes
Perfect CubesTime Limit: 10 Seconds Memory Limit: 32768 KBFor hundreds of years Fermat's Last Theorem, which stated simply that for n > 2 there exist no integers a, b, c > 1 such that a^n原创 2012-08-24 08:55:38 · 344 阅读 · 0 评论 -
ZOJ 1251 Box of Bricks
Box of BricksTime Limit: 2 Seconds Memory Limit: 65536 KBLittle Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look原创 2012-08-23 18:57:32 · 338 阅读 · 0 评论 -
ZOJ 1113 u Calculate e
u Calculate eTime Limit: 2 Seconds Memory Limit: 65536 KBBackgroundA simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very acc原创 2012-08-23 14:26:03 · 1247 阅读 · 0 评论 -
ZOJ 1110 Dick and Jane
Dick and JaneTime Limit: 2 Seconds Memory Limit: 65536 KBDick is 12 years old. When we say this, we mean that it is at least twelve and not yet thirteen years since Dick was born.Dick a原创 2012-08-23 14:23:09 · 686 阅读 · 0 评论 -
ZOJ 1622 Switch
SwitchTime Limit: 2 Seconds Memory Limit: 65536 KBThere are N lights in a line. Given the states (on/off) of the lights, your task is to determine at least how many lights should be switc原创 2012-08-25 17:29:27 · 401 阅读 · 0 评论 -
ZOJ 1760 Doubles
DoublesTime Limit: 2 Seconds Memory Limit: 65536 KBAs part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive intege原创 2012-08-25 18:51:01 · 341 阅读 · 0 评论 -
ZOJ 1730 Crazy Tea Party
Crazy Tea PartyTime Limit: 2 Seconds Memory Limit: 65536 KBn participants of "crazy tea party" sit around the table. Each minute one pair of neighbors can change their places. Find the mi原创 2012-08-25 18:17:56 · 305 阅读 · 0 评论 -
ZOJ 1715 When Can We Meet?
When Can We Meet?Time Limit: 2 Seconds Memory Limit: 65536 KBThe ICPC committee would like to have its meeting as soon as possible to address every little issue of the next contest. Howev原创 2012-08-25 17:48:23 · 423 阅读 · 0 评论 -
ZOJ 1712 Skew Binary
Skew BinaryTime Limit: 2 Seconds Memory Limit: 65536 KBWhen a number is expressed in decimal, the kth digit represents a multiple of 10 k. (Digits are numbered from right to left, where t原创 2012-08-25 17:33:56 · 362 阅读 · 0 评论 -
ZOJ 2176 Speed Limit
Speed LimitTime Limit: 2 Seconds Memory Limit: 65536 KBBill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many miles they have driven. Fo原创 2012-09-05 17:39:35 · 470 阅读 · 0 评论 -
ZOJ 2186 Keep on Truckin'
Keep on Truckin'Time Limit: 2 Seconds Memory Limit: 65536 KBBoudreaux and Thibodeaux are on the road again . . ."Boudreaux, we have to get this shipment of mudbugs to Baton Rouge by ton原创 2012-09-05 17:46:03 · 576 阅读 · 0 评论 -
ZOJ 2172 Symmetric Order
Symmetric OrderTime Limit: 2 Seconds Memory Limit: 65536 KBIn your job at Albatross Circus Management (yes, it's run by a bunch of clowns), you have just finished writing a program whose原创 2012-09-05 17:27:59 · 1683 阅读 · 0 评论 -
ZOJ 2108 Elevator
ElevatorTime Limit: 2 Seconds Memory Limit: 65536 KBThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which原创 2012-09-05 17:15:51 · 622 阅读 · 0 评论 -
ZOJ 2104 Let the Balloon Rise
Let the Balloon RiseTime Limit: 2 Seconds Memory Limit: 65536 KBContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time原创 2012-09-05 17:06:46 · 425 阅读 · 0 评论 -
ZOJ 2099 Frame Polygonal Line
Frame Polygonal LineTime Limit: 2 Seconds Memory Limit: 65536 KBYou are going to read a sequence of pairs of integer numbers. Each pair represents the Cartesian coordinates of a point in原创 2012-09-05 16:59:48 · 426 阅读 · 0 评论 -
ZOJ 2022 Factorial
FactorialTime Limit: 2 Seconds Memory Limit: 65536 KBThe most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cells (原创 2012-09-05 16:55:37 · 280 阅读 · 0 评论 -
ZOJ 1755 Clay Bully
Clay BullyTime Limit: 2 Seconds Memory Limit: 65536 KBMs. Terry is a pre-school art teacher who likes to have her students work with clay. One of her assignments is to form a lump of clay原创 2012-08-25 18:35:52 · 358 阅读 · 0 评论 -
ZOJ 1713 Haiku Review
Haiku ReviewTime Limit: 2 Seconds Memory Limit: 65536 KBHaiku is an ancient form of Japanese poetry. A haiku is a three-line poem with seventeen syllables, where the first line must conta原创 2012-08-25 17:43:52 · 399 阅读 · 0 评论 -
ZOJ 1494 Climbing Worm
Climbing WormTime Limit: 2 Seconds Memory Limit: 65536 KBAn inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a原创 2012-08-24 18:55:44 · 313 阅读 · 0 评论 -
ZOJ 1338 Up and Down Sequences
Up and Down SequencesTime Limit: 2 Seconds Memory Limit: 65536 KBThe quality of pseudo random-number generators used in some computations, especially simulation, is a significant issue. P原创 2012-08-24 10:37:50 · 437 阅读 · 0 评论 -
ZOJ 1337 Pi
PiTime Limit: 2 Seconds Memory Limit: 65536 KBProfessor Robert A. J. Matthews of the Applied Mathematics and Computer Science Department at the University of Aston in Birmingham, England原创 2012-08-24 10:31:54 · 490 阅读 · 0 评论 -
ZOJ 1115 Digital Roots
Digital RootsTime Limit: 2 Seconds Memory Limit: 65536 KBBackgroundThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a si原创 2012-08-23 14:31:55 · 210 阅读 · 0 评论 -
ZOJ 1001 A + B Problem
A + B ProblemTime Limit: 2 Seconds Memory Limit: 65536 KBCalculate a + bInputThe input will consist of a series of pairs of integers a and b,separated by a space, one pair of inte原创 2012-08-23 13:17:04 · 1169 阅读 · 0 评论 -
ZOJ 1049 I Think I Need a Houseboat
I Think I Need a HouseboatTime Limit: 2 Seconds Memory Limit: 65536 KBFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating原创 2012-08-23 13:53:04 · 314 阅读 · 0 评论 -
ZOJ 1048 Financial Management
Financial ManagementTime Limit: 2 Seconds Memory Limit: 65536 KBLarry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larr原创 2012-08-23 13:46:45 · 343 阅读 · 0 评论 -
ZOJ 1889 Ones
OnesTime Limit: 2 Seconds Memory Limit: 65536 KBGiven any integer 0 <= n <= 10000 not divisible by 2 or 5, some multiple of n is a number which in decimal notation is a sequence of 1's. H原创 2012-08-30 22:10:46 · 609 阅读 · 0 评论 -
ZOJ 1871 Steps
StepsTime Limit: 2 Seconds Memory Limit: 65536 KBOne steps through integer points of the straight line. The length of a step must be nonnegative and can be by one bigger than, equal to, o原创 2012-08-30 22:03:05 · 609 阅读 · 0 评论 -
ZOJ 1797 Least Common Multiple
Least Common MultipleTime Limit: 2 Seconds Memory Limit: 65536 KBThe least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all t原创 2012-08-30 21:56:55 · 307 阅读 · 0 评论 -
ZOJ 1879 Jolly Jumpers
Jolly JumpersTime Limit: 2 Seconds Memory Limit: 65536 KBA sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on原创 2012-08-30 22:07:29 · 405 阅读 · 0 评论 -
ZOJ 1813 Biker's Trip Odometer
Biker's Trip OdometerTime Limit: 2 Seconds Memory Limit: 65536 KBMost bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attach原创 2012-08-30 22:00:16 · 687 阅读 · 0 评论