poj1018

maksyuki 发表于 oj 分类,标签:
0
poj1018

Communication System

We have received an order from Pizoor Communications Inc. for a special communication system. The system consists of several devices. For each device, we are free to choose from several manufacturers. Same devices from two manu >>继续阅读

poj2686

maksyuki 发表于 oj 分类,标签:
0
poj2686

Traveling by Stagecoach

Once upon a time, there was a traveler.

He plans to travel using stagecoaches (horse wagons). His starting point and destination are fixed, but he cannot determine his route. Your job in this problem is to write a program >>继续阅读

poj1745

maksyuki 发表于 oj 分类,标签:
0
poj1745

Divisibility

Consider an arbitrary sequence of integers. One can place + or - operators between integers in the sequence, thus deriving different arithmetical expressions that evaluate to different values. Let us, for example, take the sequence: 17 >>继续阅读

poj1844

maksyuki 发表于 oj 分类,标签: ,
0
poj1844

Sum

Consider the natural numbers from 1 to N. By associating to each number a sign (+ or -) and calculating the value of this expression we obtain a sum S. The problem is to determine for a given sum S the minimum number N for which we can obtain S >>继续阅读

poj2392

maksyuki 发表于 oj 分类,标签:
0
poj2392

Space Elevator

The cows are going to space! They plan to achieve orbit by building a sort of space elevator: a giant tower of blocks. They have K (1 <= K <= 400) different types of blocks with which to build the tower. Each block of type i ha >>继续阅读

poj3666

maksyuki 发表于 oj 分类,标签:
0
poj3666

Making the Grade

A straight dirt road connects two fields on FJ's farm, but it changes elevation more than FJ would like. His cows do not mind climbing up or down a single slope, but they are not fond of an alternating succession of hills and valle >>继续阅读

poj1548

maksyuki 发表于 oj 分类,标签: ,
0
poj1548

Robots

Your company provides robots that can be used to pick up litter from fields after sporting events and concerts. Before robots are assigned to a job, an aerial photograph of the field is marked with a grid. Each location in the grid that cont >>继续阅读

poj1065

maksyuki 发表于 oj 分类,标签: ,
0
poj1065

Wooden Sticks

There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to pre >>继续阅读

poj2184

maksyuki 发表于 oj 分类,标签:
0
poj2184

Cow Exhibition

"Fat and docile, big and dumb, they look so stupid, they aren't much fun..."

- Cows with Guns by Dana Lyons

The cows want to prove to the public that they are both smart and fun. In order to do this, Bessie has organized an exhib >>继续阅读

poj3181

maksyuki 发表于 oj 分类,标签: ,
0
poj3181

Dollar Dayz

Farmer John goes to Dollar Days at The Cow Store and discovers an unlimited number of tools on sale. During his first visit, the tools are selling variously for $1, $2, and $3. Farmer John has exactly $5 to spend. He can buy 5 tools at >>继续阅读

hdu1398

maksyuki 发表于 oj 分类,标签:
0
hdu1398

Square Coins

People in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with values of all square numbers up to 289 (=17^2), i.e., 1-credit coins, 4-credit coins, 9-credit coins, ..., and >>继续阅读

poj3046

maksyuki 发表于 oj 分类,标签:
0
poj3046

Ant Counting

Bessie was poking around the ant hill one day watching the ants march to and fro while gathering food. She realized that many of the ants were siblings, indistinguishable from one another. She also realized the sometimes only one ant w >>继续阅读

poj1742

maksyuki 发表于 oj 分类,标签:
0
poj1742

Coins

People in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there were some coins.He decided to buy a very nice watch in a nearby shop. He wanted to pay the exact price(w >>继续阅读

poj3280

maksyuki 发表于 oj 分类,标签:
0
poj3280

Cheapest Palindrome

Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an electronic ID tag that the system will read as the cows pass by a scanner. Each ID tag's co >>继续阅读

poj2718

maksyuki 发表于 oj 分类,标签:
0
poj2718

Smallest Difference

Given a number of distinct decimal digits, you can form one integer by choosing a non-empty subset of these digits and writing them in some order. The remaining digits can be written down in some order to form a second integer. >>继续阅读

poj3262

maksyuki 发表于 oj 分类,标签:
0
poj3262

Protecting the Flowers

Farmer John went to cut some wood and left N (2 ≤ N ≤ 100,000) cows eating the grass, as usual. When he returned, he found to his horror that the cluster of cows was in his garden eating his beautiful flowers. Wanting to mini >>继续阅读