Squares in a range
Given a range of numbers
[l; r]
you are asked to calculate the squares of all the numbers in that range and print them out separated by a space (l
and r
are inclusive).The first line contains two numbers
l
and r
. The program should print a list of numbers separated by a space.
Input | Output |
3 7 | 9 16 25 36 49 |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB