Area
Time limit1sMemory limit1024 MB
Given n frames with heights and widths, the task is to print the largest area h times w among them.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Stuart has rectangular frames, numbered from 1 to . Frame has height and width . The size of a frame is the area it covers. Find the area covered by the largest frame Stuart has.
Input
The first line contains a single integer . Each of the next lines contains two space-separated integers and , the height and width of frame .
Output
Print one integer, the area covered by the largest frame.
Constraints