HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


085. 50333 - Series of Squares

Guest
• Discussion of problem (1)

Volume problems

• 060. 50362 - Pythagorean Numbers
• 060. Problem 2
• 065. 50394 - Water Bills
• 070. 50465 - How many students h...
• 072. 50473 - Counting Circles Positions
• 074. 50396 - Cinema Tickets - 1
• 075. 50363 - Class GPA Average
• 080. 50248 - Power of two
• 085. 50333 - Series of Squares
• 090. 50456 - nth Digit of a Number
• 095. 50651 - Largest power of two
• 110. 50288 - Even numbers in even...
• 115. 50425 - Calculating Weekly Pay
• 118. 50514 - Bookkeeping
• 120. 50426 - Calculating Sales
• 125. 50484 - Number Of Letters
• 130. 50440 - Call Center

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