poj2031

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

Building a Space Station

You are a member of the space station engineering team, and are assigned a task in the construction process of the station. You are expected to write a computer program to complete the task. The space station is made up wit >>继续阅读

poj2019

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

Cornfields

FJ has decided to grow his own corn hybrid in order to help the cows make the best possible milk. To that end, he's looking to build the cornfield on the flattest piece of land he can find. FJ has, at great expense, surveyed his square f >>继续阅读

poj2003

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

Hire and Fire

In this problem, you are asked to keep track of the hierarchical structure of an organization's changing staff. As the first event in the life of an organization, the Chief Executive Officer (CEO) is named. >>继续阅读

poj1995

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

Raising Modulo Numbers

People are different. Some secretly read magazines full of interesting girls' pictures, others create an A-bomb in their cellar, others like using Windows, and some like difficult mathematical games. Latest marketing research >>继续阅读

poj1979

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

Red and Black

There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. But he can't move on red tiles, he can move o >>继续阅读

poj1961

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

Period

For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefix is a periodic string. That is, for each i (2 <= i <= N) we >>继续阅读

poj1958

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

Strange Towers of Hanoi

Background

Charlie Darkbrown sits in another one of those boring Computer Science lessons: At the moment the teacher just explains the standard >>继续阅读

poj1887

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

Testing the CATCHER

A military contractor for the Department of Defense has just completed a series of preliminary tests for a new defensive missile called the CATCHER which is capable of intercepting multiple incoming offensive missiles. The CATCH >>继续阅读

poj1861

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

Network

Andrew is working as system administrator and is planning to establish a new network in his company. There will be N hubs in the company, they can be connected to each other using cables. Since each >>继续阅读

poj1845

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

Sumdiv

Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901).

Input

The only line contains the two natural numbers A and B, (0 <= A,B <= 5000 >>继续阅读

poj1811

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

Prime Test

Given a big integer number, you are required to find out whether it's a prime number.

Input

The first line contains the number of test cases T (1 <= T <= 20 ), then the following T lines each contains an integer number N (2 < >>继续阅读

poj1808

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

Quadratic Residues

Background

In 1801, Carl Friedrich Gauss (1777-1855) published his "Disquisitiones Arithmeticae", which basically created modern number theory and is still being sold today. One of the many topics treated in his book was the pr >>继续阅读

poj1804

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

Brainman

Background

Raymond Babbitt drives his brother Charlie mad. Recently Raymond counted 246 toothpicks spilled all over the floor in an instant just by glancing at them. And he can even count Poker cards. Charlie would love to be able to do >>继续阅读

poj1789

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

Truck History

Advanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for vegetable delivery, other for furniture, or for bricks. The company has its own code describing each type of a truck. >>继续阅读

poj1785

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

Binary Search Heap Construction

Read the statement of problem G for the definitions concerning trees. In the following we define the basic terminology of heaps. A heap is a tree whose internal nodes have each assigned a priority >>继续阅读

poj1751

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

HighwaysThe island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways. The Flatopian government is aware of this problem and has already constructed a number of highways connecting some of >>继续阅读