uva1585

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

There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problem and an ‘X’ means a wrong answer. The score of each problem of this test is calculated by itself and its just previous consecutive ‘O’s only when the an >>继续阅读

uva1583

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

For a positive integer N, the digit-sum of N is defined as the sum of N itself and its digits. When M is the digitsum of N, we call N a generator of M.

For example, the digit-sum of 245 is 256 (= 245 + 2 + 4 + 5). Therefore, 245 is a generator of 2 >>继续阅读

uva340

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

MasterMind is a game for two players. One of them, Designer, selects a secret code. The other, Breaker, tries to break it. A code is no more than a row of colored dots. At the beginning of a game, the players agree upon the length N that a code must >>继续阅读

uva10082

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

A common typing error is to place the hands on the keyboard one row to the right of the correct position. So ‘Q’ is typed as ‘W’ and ‘J’ is typed as ‘K’ and so on. You are to decode a message typed in this manner.

Input

Input consists of several >>继续阅读

poj2181

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

Jumping Cows

Farmer John's cows would like to jump over the moon, just like the cows in their favorite nursery rhyme. Unfortunately, cows can not jump. The local witch doctor has mixed up P (1 <= P <= 150,000) potions to aid the cows in their >>继续阅读

poj1953

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

World Cup Noise

"KO-RE-A, KO-RE-A" shout 54.000 happy football fans after their team has reached the semifinals of the FIFA World Cup in their home country. But although their excitement is real, the Korean people are still very organized by nature >>继续阅读

poj1664

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

放苹果

把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。

Input >>继续阅读

poj1414

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

Life Line

Let's play a new board game "Life Line". The number of the players is greater than 1 and less than 10. In this game, the board is a regular triangle in which many small regular triangles are arranged (See Figure 1). The edges of each smal >>继续阅读

poj1179

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

Polygon

Polygon is a game for one player that starts on a polygon with N vertices, like the one in Figure 1, where N=4. Each vertex is labelled with an integer and each edge is labelled with either the symbol + (addition) or the symbol * (product). >>继续阅读

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 >>继续阅读