АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

703. Число с максимальной суммой делителей

Time Limit: 1 seconds
Memory Limit:65535KB
Points:2
View Problem Statistics Submit Problem added Administrator

 
Дано число N. Найти число из диапазона от 1 до N с максимальной суммой
делителей (включая непростые делители, 1 и само число). Если таких чисел
несколько, выведите любое из них.

Пример ввода
5

Пример вывода
4

View Problem Statistics Submit Author/source:
Educational Courses / Problems from olympiads.ru for beginners /
702. 108 - Трехзначные числа с различными цифрами 703. 704. 110 - Количество повторов максимального числа 705. 111 - Четные числа на четных местах 706. 112 - Короткий НОД
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.094 sec.
© Copyright VSTU, AVT, Nosov D.A.