АВТ
Language:

Remote Training on Programming

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

1078. Sovershennie chisla

Time Limit: 5 seconds
Memory Limit:65536KB
Points:2
View Problem Statistics Submit Problem added Undefined

Натуральное число называется совершенным, если оно равно сумме всех своих делителей, за ислючением себя самого.

Дано натуральное число n. Получить все совершенные числа, меньшие n.

На входе

Число n

На выходе

Совершенные числа меньшие n, записанные через пробел.

Пример 1. Вход:
100
 Выход:
6
28

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
628. Removing the word 1078. 637. The Givenned number a,b,c to define how much of them equal. 663. The least and last elements of a file 649. The quantity of numbers is less C
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.203 sec.
© Copyright VSTU, AVT, Nosov D.A.