Print squares and cubes
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given two integers a and b. Print the squares and cubes for all integers between a and b inclusively.
Input
First line contains two integers a and b (0 ≤ a ≤ b ≤ 10000).
Output
Print in the first line the squares for all integers between a and b inclusively in increasing order. Print in the second line the cubes for all integers between a and b inclusively in decreasing order.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 18K
Acceptance rate 35%