POJ
JW12138
既然出生在这个世上,我就没想着活着回去!!!
展开
-
悼念512汶川大地震遇难同胞——珍惜现在,感恩生活(HDU-2191)
Problem Description急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品,其价格不等,并且只能整袋购买。请问:你用有限的资金最多能采购多少公斤粮食呢?后记:人生是一个充满了变数的生命过程,天灾、人祸、病痛是我们生命历程中不可预知的威胁。月有阴晴圆缺原创 2017-05-22 22:01:32 · 172 阅读 · 0 评论 -
Ancient Cipher (UVA-10340 && POJ-2159)
DescriptionAncient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in enc原创 2017-06-16 18:57:49 · 267 阅读 · 0 评论 -
Collecting Bugs(POJ-2096)
DescriptionIvan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he collects software bugs. When Ivan gets a new program, he classifies all possible原创 2017-05-21 18:36:04 · 281 阅读 · 0 评论 -
Piggy-Bank(POJ-1384 && HDU-1114)
DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The idea beh原创 2017-05-22 16:51:00 · 202 阅读 · 0 评论 -
Investment(POJ-2063 && HDU-1963)
DescriptionJohn never knew he had a grand-uncle, until he received the notary's letter. He learned that his late grand-uncle had gathered a lot of money, somewhere in South-America, and that John wa原创 2017-05-22 17:06:43 · 221 阅读 · 0 评论 -
Charm Bracelet(POJ-3624)
DescriptionBessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from theN (1 ≤ N ≤ 3,402) available charms. Ea原创 2017-05-22 18:12:28 · 415 阅读 · 0 评论 -
Cow Exhibition(POJ-2184)
Description"Fat and docile, big and dumb, they look so stupid, they aren't muchfun..."- Cows with Guns by Dana LyonsThe cows want to prove to the public that they are both smart and fun. I原创 2017-05-22 21:01:53 · 272 阅读 · 0 评论 -
Flip Game(POJ-1753)
DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying e原创 2017-06-20 18:52:31 · 277 阅读 · 0 评论 -
Power of Cryptography(POJ-2109 && UVA-113)
DescriptionCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these primes. Work in this area has resulted in the practical use of r原创 2017-06-20 20:57:36 · 317 阅读 · 0 评论 -
Brackets Sequence (POJ-1141)
Let us define a regular brackets sequence in the following way:1. Empty sequence is a regular sequence. 2. If S is a regular sequence, then (S) and [S] are both regular sequences. 3. If A an原创 2017-07-19 19:14:57 · 472 阅读 · 0 评论 -
Cube Stacking(POJ-1988)
DescriptionFarmer John and Betsy are playing a game with N (1 <= N <= 30,000)identical cubes labeled 1 through N. They start with N stacks, each containing a single cube. Farmer John asks Betsy to p原创 2017-05-20 21:45:41 · 262 阅读 · 0 评论 -
Find them, Catch them(POJ-1703)
DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Gang Snake. However, the police first needs to ide原创 2017-05-20 21:41:19 · 196 阅读 · 0 评论 -
A Bug's Life(POJ-2492)
DescriptionBackgroundProfessor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the原创 2017-05-20 21:03:32 · 344 阅读 · 0 评论 -
Charlie's Change(POJ-1787)
DescriptionCharlie is a driver of Advanced Cargo Movement, Ltd. Charlie drives a lot and so he often buys coffee at coffee vending machines at motorests. Charlie hates change. That is basically the原创 2017-05-22 22:12:32 · 224 阅读 · 0 评论 -
Radar Installation(POJ-1328)
DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, loc原创 2017-05-23 21:16:07 · 218 阅读 · 0 评论 -
Heavy Transportation(POJ-1797)
DescriptionBackgroundHugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from the原创 2017-05-23 21:51:18 · 257 阅读 · 0 评论 -
Invitation Cards(POJ-1511)
DescriptionIn the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater and, most of all, Antique Co原创 2017-05-23 22:03:31 · 303 阅读 · 0 评论 -
Arbitrage(POJ-2240 && HDU-1217)
DescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1 US Dollar bu原创 2017-05-24 10:10:00 · 397 阅读 · 0 评论 -
Exponentiation(POJ-1001) Java大数例题
DescriptionProblems 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 comp原创 2017-05-24 10:30:32 · 504 阅读 · 0 评论 -
食物链(POJ-1182)
Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这N个动物所构成的食物链关系进行描述:第一种说法是"1 X Y",表示X和Y是同类。第二种说法是"2 X Y",表示X吃Y。此人对N个动物,用上述两种说原创 2017-05-20 20:57:11 · 267 阅读 · 0 评论 -
The Suspects(POJ-1611)
DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best str原创 2017-05-20 21:10:22 · 197 阅读 · 0 评论 -
Wireless Network(POJ-2236)
DescriptionAn earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected aftershock attacked, all compu原创 2017-05-20 21:17:13 · 556 阅读 · 0 评论 -
The Pilots Brothers' refrigerator(POJ-2965)
DescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.There are 16 handles on the refrigerator door. Every handle can b原创 2017-06-20 20:14:15 · 266 阅读 · 0 评论