Please enter your email address or userHandle.
Given length L and breadth B of N rectangles. The task is to return maximum area of the rectangle.
1 2 3 4 5 6
Area of rectangle with length 5 and
breadth 6 is maximum, and is equal to 30.
12 3 40 5
Area of rectangle with length 40 and
breadth 5 is maximum, and is equal to 200.
User Task: Your task is to complete the function calculate_Area() which returns maximum area. Use area() function in Rectangle class.
1 <= N <= 103
1 <= L, B <= 104
1 <= Area <= 108
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.