### New Year Candles

2020

Vasily the Programmer loves romance, so this year he decided to illuminate his room with candles. Vasily has a candles.When Vasily lights up a new candle, it […]

### New Year Ratings Change

2020

One very well-known internet resource site (let’s call it X) has come up with a New Year adventure. Specifically, they decided to give ratings to […]

### New Year Present

2020

The New Year is coming! That’s why many people today are busy preparing New Year presents. Vasily the Programmer is no exception. Vasily knows that […]

### New Year Letter

2020

Many countries have such a New Year or Christmas tradition as writing a letter to Santa including a wish list for presents. Vasya is an […]

### New Year Tree Decorations

2020

Due to atheistic Soviet past, Christmas wasn’t officially celebrated in Russia for most of the twentieth century. As a result, the Russian traditions for Christmas […]

### New Year Permutation

2020

User ainta has a permutation p 1, p 2, …, p n. As the New Year is coming, he wants to make his permutation as pretty as possible. Permutation a 1, a 2, …, a n is prettier than permutation b 1, b 2, …, b n, if and […]

### New Year Transportation

2020

New Year is coming in Line World! In this world, there are n cells numbered by integers from 1 to n, as a 1 × n board. People live in cells. However, it was […]

2020

New Year is coming, and Jaehyun decided to read many books during 2015, unlike this year. He has n books numbered by integers from 1 to n. The […]

### New Year Santa Network

2020

New Year is coming in Tree World! In this world, as the name implies, there are n cities connected by n - 1 roads, and for any two distinct cities there […]

### New Year Domino

2020

Celebrating the new year, many people post videos of falling dominoes; Here’s a list of them: https://www.youtube.com/results?search_query=New+Years+Dominos User ainta, who lives in a 2D world, is […]

### New Year Shopping

2020

Dohyun is running a grocery store. He sells n items numbered by integers from 1 to n. The i-th (1 ≤ i ≤ n) of them costs c i dollars, and if I buy it, my […]

### New Year and Old Property

2020

The year 2015 is almost over. Limak is a little polar bear. He has recently learnt about the binary system. He noticed that the passing […]

### New Year and Days

2020

Today is Wednesday, the third day of the week. What’s more interesting is that tomorrow is the last day of the year 2015. Limak is […]

### New Year and Domino

2020

They say “years are like dominoes, tumbling one after the other“. But would a year fit into a grid? I don’t think so. Limak is […]

### New Year and Ancient Prophecy

2020

Limak is a little polar bear. In the snow he found a scroll with the ancient prophecy. Limak doesn’t know any ancient languages and thus […]

### New Year and Cleaning

2020

Limak is a little polar bear. His parents told him to clean a house before the New Year’s Eve. Their house is a rectangular grid […]

### New Year and Three Musketeers

2020

Do you know the story about the three musketeers? Anyway, you must help them now. Richelimakieu is a cardinal in the city of Bearis. He […]

### New Year and Forgotten Tree

2020

A tree is a connected undirected graph with n - 1 edges, where n denotes the number of vertices. Vertices are numbered 1 through n. Limak is a little polar bear. His bear family prepares a […]

### New Year and Cake

2020

Limak is a little polar bear. According to some old traditions, his bear family prepared a New Year cake. And Limak likes cakes. As you […]

### New Year Tree

2020

The New Year holidays are over, but Resha doesn’t want to throw away the New Year tree. He invited his best friends Kerim and Gural […]