Print squares and cubes
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Two integers and are given. Print the squares and cubes of all integers from to inclusive.
Input
Two integers and .
Output
In the first line, print the squares of all integers from to inclusive in ascending order. In the second line, print the cubes of all integers from to inclusive in descending order.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 18K
Acceptance rate 35%