#P10727. [NOISG 2023 Qualification] Area
[NOISG 2023 Qualification] Area
Problem Description
Stuart has rectangles. For the -th rectangle, its length is and its width is .
The area of a rectangle is the size of the region it covers. Stuart wants you to help him find the maximum area among these rectangles.
Input Format
The first line contains an integer .
The next lines each contain two integers , representing the length and width of the -th rectangle.
Output Format
Output one integer, the maximum area.
3
5 9
19 4
8 10
80
5
8 2
4 9
3 8
1 7
9 4
36
Hint
Constraints
| Score | Special property | |
|---|---|---|
| None |
For all testdata, , .
Translated by ChatGPT 5