ITeye博客

UVA

共 7 篇文章

Juice Extractor(树状数组 + dp)

Juice Extractor Jerry loses himself in the interesting game: Fruit Ninja. Fruit Ninja is a game of iPhone and iPad in which the players cut the fruits coming from the bottom of the screen and gain the bonus from cutting more than two fruits with a single slice. Once a fruit is cut, it breaks into s…

2014-12-01 21:41 · UVA

Determine the Shape(暴力)

G Determine the Shape Input Standard Input Output Standard Output A toy company recently found that toys like revolver, machine guns, fighting planes are making children violent and destroying the peace of the world. The parents also began to avoid these toys and inclined to educational toys. So th…

2014-08-13 23:26 · UVA

Jump(递推)

4727 - Jump Asia - Seoul - 2009/2010 Integers 1, 2, 3,..., n are placed on a circle in the increasing order as in the following figure. We want to construct a sequence from these numbers on a circle. Starting with the number 1, we continually go round by picking out each k-th number and send to a s…

2014-07-28 10:11 · UVA

Permutation(线段树 + 单点更新)

Problem F Permutation Input: Standard Input Output: Standard Output Given N and K find the N’th permutation of the integers from 1 to K when those permutations are lexicographically ordered. N starts from 0. Since N is very large N will be represented by a sequence of K non-negative integers S1, S2…

2014-07-28 09:13 · UVA

Box Game(规律)

Box Game Input: Standard Input Output: Standard Output There are two identical boxes. One of them contains n balls, while the other box contains one ball. Alice and Bob invented a game with the boxes and balls, which is played as follows: Alice and Bob moves alternatively, Alice moves first. For ea…

2014-07-19 10:18 · UVA

Astronauts(2 - sat)

1391 - Astronauts Time limit: 3.000 seconds The Bandulu Space Agency (BSA) has plans for the following three space missions: Mission A: Landing on Ganymede, the largest moon of Jupiter. Mission B: Landing on Callisto, the second largest moon of Jupiter. Mission C: Landing on Titan, the largest moon…

2014-05-01 21:21 · UVA

Children’s Game(String)

Description 4thIIUCInter-University Programming Contest, 2005 A Children’s Game Input: standard input Output: standard output Problemsetter: Md. Kamruzzaman There are lots of number games for children. These games are pretty easy to play but not so easy to make. We will discuss about an interesting…

2014-04-18 22:57 · UVA