HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Sorting and sequences > problem:


50333 - Series of Squares

Guest
• Discussion of problem (1)

Section problems

• 50290 - Minimax Sum
• 50738 - Median value
• 50317 - Student Line Up
• 50311 - Student Line Up
• 50320 - Random Sorted List
• 50736 - Top N Donors - 2
• 50733 - The Highest Average
• 50364 - Student averages
• 50333 - Series of Squares
• 50734 - Product Info (In Srt)
• 50735 - Top M Products
• 50339 - The Largest Rectangle
• 50492 - Contest Scoreboard
• 50737 - Sum of the k-largest numbers
• 50418 - Student averages
• 50875 - Take m-out
• 50748 - Gold Store

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Prepared by Ibrahim Mesecan. Difficulty Beta

Write a program to print series of squared numbers starting from 1 and as long as the printed numbers are smaller than or equal to the given number (n).


Input specification
You will be given one integer (n) which is greater than 1 and is less than or equal to 100.000.
  1 < n ≤ 100.000

Output specification
The numbers will be space separated.

Sample Input I
67

Sample Output I
1 4 9 16 25 36 49 64

Sample Input II
500

Sample Output II
1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400 441 484

Для отправки решений необходимо выполнить вход.

www.contester.ru