Largest Submatrix 3

2020 VietMX 0

You are given matrix a of size n × m, its elements are integers. We will assume that the rows of the matrix are numbered from top to bottom from […]

The Great Game

2020 VietMX 0

Two teams meet in The Game World Championship. Some scientists consider this game to be the most intellectually challenging game in the world. You are […]

Magnum Opus

2020 VietMX 0

Salve, mi amice. Et tu quidem de lapis philosophorum. Barba non facit philosophum. Labor omnia vincit. Non potest creatio ex nihilo. Necesse est partibus. Rp: […]

A + B Strikes Back

2020 VietMX 0

A + B is often used as an example of the easiest problem possible to show some contest platform. However, some scientists have observed that […]

Big Data

2020 VietMX 0

Little Petya wanted to give an April Fools Day present to some scientists. After some hesitation he decided to give them the array that he […]

Dome

2020 VietMX 0

Input The input contains a single floating-point number x with exactly 6 decimal places (0 < x < 5). Output Output two integers separated by a single space. Each integer should […]

Football

2020 VietMX 0

One day, at the “Russian Code Cup” event it was decided to play football as an out of competition event. All participants was divided into n teams […]

Cunning Gena

2020 VietMX 0

A boy named Gena really wants to get to the “Russian Code Cup” finals, or at least get a t-shirt. But the offered problems are […]

Square Table

2020 VietMX 0

While resting on the ship after the “Russian Code Cup” a boy named Misha invented an interesting game. He promised to give his quadrocopter to […]

Pattern

2020 VietMX 0

Developers often face with regular expression patterns. A pattern is usually defined as a string consisting of characters and metacharacters that sets the rules for […]

Network Configuration

2020 VietMX 1

The R1 company wants to hold a web search championship. There were n computers given for the competition, each of them is connected to the Internet. The […]

Poster

2020 VietMX 0

The R1 company has recently bought a high rise building in the centre of Moscow for its main office. It’s time to decorate the new […]

Giving Awards

2020 VietMX 0

The employees of the R1 company often spend time together: they watch football, they go camping, they solve contests. So, it’s no big deal that […]

E-mail Addresses

2020 VietMX 0

One of the most important products of the R1 company is a popular @r1.com mail service. The R1 mailboxes receive and send millions of emails […]

Feed with Candy

2020 VietMX 0

The hero of the Cut the Rope game is a little monster named Om Nom. He loves candies. And what a coincidence! He also is […]

Om Nom and Spiders

2020 VietMX 0

Om Nom really likes candies and doesn’t like spiders as they frequently steal candies. One day Om Nom fancied a walk in a park. Unfortunately, […]

Dungeons and Candies

2020 VietMX 0

During the loading of the game “Dungeons and Candies” you are required to get descriptions of k levels from the server. Each description is a map of […]

Pudding Monsters

2020 VietMX 0

Have you ever played Pudding Monsters? In this task, a simplified one-dimensional model of this game is used. Imagine an infinite checkered stripe, the cells […]

Banners

2020 VietMX 0

All modern mobile applications are divided into free and paid. Even a single application developers often release two versions: a paid version without ads and […]