uva1591

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

Dr. Tuple is working on the new data-mining application for Advanced Commercial Merchandise Inc. One of the subroutines for this application works with two arrays P and Q containing N records of data each (records are numbered from 0 to N − 1). Array >>继续阅读

uva12108

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

When a student is too tired, he can’t help sleeping in class, even if his favorite teacher is right here in front of him. Imagine you have a class of extraordinarily tired students, how long do you have to wait, before all the students are listening >>继续阅读

uva815

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

To enable homebuyers to estimate the cost of flood insurance, a real-estate firm provides clients with the elevation of each 10-meter by 10-meter square of land in regions where homes may be purchased. Water from rain, melting snow, and burst water m >>继续阅读

uva508

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

Samuel F. B. Morse is best known for the coding scheme that carries his name. Morse code is still used in international radio communication. The coding of text using Morse code is straightforward. Each character (case is insignificant) is translated >>继续阅读

uva1590

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

Alex is administrator of IP networks. His clients have a bunch of individual IP addresses and he decided to group all those IP addresses into the smallest possible IP network.

Each IP address is a 4-byte number that is written byte-by-byte in a dec >>继续阅读

uva253

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

We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. The cube’s faces are numbered as in Figure 1.

Since a cube has 6 faces, our machine can paint a f >>继续阅读

uva220

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

Othello is a game played by two people on an 8 x 8 board, using disks that are white on one side and black on the other. One player places disks with the white side up and the other player places disks with the black side up. The players alternate pl >>继续阅读

uva201

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

 A children’s board game consists of a square array of dots that contains lines connecting some of the pairs of adjacent dots. One part of the game requires that the players count the number of squares of certain sizes that are formed by these lines. >>继续阅读

uva1589

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

Xiangqi is one of the most popular two-player board games in China. The game represents a battle between two armies with the goal of capturing the enemy’s “general” piece. In this problem, you are given a situation of later stage in the game. Besides >>继续阅读

uva512

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

Data in spreadsheets are stored in cells, which are organized in rows (r) and columns (c). Some operations on spreadsheets can be applied to single cells (r, c), while others can be applied to entire rows or columns. Typical cell operations include i >>继续阅读

uva133

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

In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every day all dole applicants will be placed in a large circle, facing inwards. Someone is arbitrarily cho >>继续阅读

uva489

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

In Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well as the guesses. Rules are the same as the classic game of hangman, and are given as follows:

The conte >>继续阅读

uva11809

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

Floating-point numbers are represented differently in computers than integers. That is why a 32-bit floating-point number can represent values in the magnitude of 1038 while a 32-bit integer can only represent values as high as 2^32.

Although there >>继续阅读

uva10340

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

You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not discuss in detail how the strings are generated and inser >>继续阅读

uva227

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

A children’s puzzle that was popular 30 years ago consisted of a 5×5 frame which contained 24 small squares of equal size. A unique letter of the alphabet was printed on each small square. Since there were only 24 squares within the frame, the frame >>继续阅读

uva1586

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

An organic compound is any member of a large class of chemical compounds whose molecules contain carbon. The molar mass of an organic compound is the mass of one mole of the organic compound. The molar mass of an organic compound can be computed from >>继续阅读