AtCoder Grand Contest 020 (2/6)

maksyuki 发表于 比赛 分类,标签:
0
AtCoder Grand Contest 020 (2/6)

A Move and Win

A game is played on a strip consisting of N cells consecutively numbered from 1 to N.

Alice has her token on cell A. Borys has his token on a different cell B.

Players take turns, Alice moves first. The moving player must shift h >>继续阅读

Codeforces Educational Round 36(Rated for Div. 2) (3/7)

maksyuki 发表于 比赛 分类,标签:
0
Codeforces Educational Round 36(Rated for Div. 2) (3/7)

A Garden

Luba thinks about watering her garden. The garden can be represented as a segment of length k. Luba has got n buckets, the i-th bucket allows her to water some continuous subsegment of garden of length exactly ai each hour. Luba can't wate >>继续阅读

uva1592

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

Peter studies the theory of relational databases. Table in the relational database consists of values that are arranged in rows and columns.

There are different normal forms that database may adhere to. Normal forms are designed to minimize the red >>继续阅读

Codeforces Round Hello 2018 (4/8)

maksyuki 发表于 比赛 分类,标签:
0
Codeforces Round Hello 2018 (4/8)

A Modular Exponentiation

The following problem is well-known: given integers n and m, calculate,

where 2n = 2·2·...·2 (n factors), and denotes the remainder of division of x by y.

You are asked to solve the "reverse" problem. Given integers n a >>继续阅读

Codeforces Round #456(Div.2) (2/5)

maksyuki 发表于 比赛 分类,标签:
0
Codeforces Round #456(Div.2) (2/5)

A Tricky Alchemy

During the winter holidays, the demand for Christmas balls is exceptionally high. Since it's already 2018, the advances in alchemy allow easy and efficient ball creation by utilizing magic crystals.

Grisha needs to obtain some ye >>继续阅读

uva400

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

The computer company you work for is introducing a brand new computer line and is developing a new Unix-like operating system to be introduced along with the new computer. Your assignment is to write the formatter for the ls function.

Your program >>继续阅读

uva540

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

Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, though it occurs often in everyday life. At lunch time the queue in front of the Mensa is a team queue, for exa >>继续阅读

uva12096

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

Background from Wikipedia: “Set theory is a branch of mathematics created principally by the German mathematician Georg Cantor at the end of the 19th century. Initially controversial, set theory has come to play the role of a foundational theory in m >>继续阅读

uva156

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

Most crossword puzzle fans are used to anagrams — groups of words with the same letters in different orders — for example OPTS, SPOT, STOP, POTS and POST. Some words however do not have this attribute, no matter how you rearrange their letters, you c >>继续阅读

uva10815

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

Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, not quite enough. Instead of thinking up all the words himself, he has a briliant idea. From his book >>继续阅读

uva101

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

Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study of planning and robotics (STRIPS) used a block world in which a robot arm performed tasks involving the manipulation >>继续阅读

uva10474

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

Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place the marbles one after another in ascending order of the numbers written on them. Then Meena would ask Raju to fi >>继续阅读

uva509

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

RAID (Redundant Array of Inexpensive Disks) is a technique which uses multiple disks to store data. By storing the data on more than one disk, RAID is more fault tolerant than storing data on a single disk. If there is a problem with one of the disks >>继续阅读

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