最新 最热

ACMSGURU 102 - Coprimes

For given integer N (1<=N<=10^4) find amount of positive numbers not greater than N that coprime with N. Let us call two positive integers (say, A and B, for ex...

2021-08-11
0

LeetCode 0626 - Exchange Seats

Mary is a teacher in a middle school and she has a table seat storing students’ names and their corresponding seat ids.

2021-08-11
1

ACMSGURU 107 - 987654321 problem

For given number N you must output amount of N-digit numbers, such, that last digits of their square is equal to 987654321.

2021-08-11
1

ACMSGURU 551 - Preparing Problem

It is not easy to prepare a problem for a programming contest. Petya and Vasya decided that problem “A+B” needs at least n distinct solutions to be written. It ...

2021-08-11
0

ACMSGURU 115 - Calendar

First year of new millenium is gone away. In commemoration of it write a program that finds the name of the day of the week for any date in 2001.

2021-08-11
0

ACMSGURU 276 - Andrew's Troubles

Famous Berland ACM-ICPC team Anisovka consists of three programmers: Andrew, Michael and Ilya. A long time ago, during the first few months the team was founded...

2021-08-11
0

ACMSGURU 111 - Very simple problem

You are given natural number X. Find such maximum integer number that it square is not greater than X.

2021-08-11
0

ACMSGURU 133 - Border

Along the border between states A and B there are N defence outposts. For every outpost k, the interval [Ak,Bk] which is guarded by it is known. Because of fina...

2021-08-11
1

ACMSGURU 358 - Median of Medians

Vasya learned definition of median of three numbers. He says, “Median of three numbers is the number located in the middle when numbers are ordered in non-desce...

2021-08-11
1

ACMSGURU 130 - Circle

On a circle border there are 2k different points A1, A2, …, A2k, located contiguously. These points connect k chords so that each of points A1, A2, …, A2k is th...

2021-08-11
1