Rectangles in a Square
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given a rectangle with sides (a) and (b), determine the area of the smallest square that can completely contain this rectangle.
Input
Two integers (a) and (b) representing the sides of the rectangle, where (a, b \leq 1000).
Output
A single integer representing the area of the smallest square that can enclose the rectangle.
Examples
Input #1
Answer #1
Input #8
Answer #8
Submissions 559
Acceptance rate 32%