링크 : https://school.programmers.co.kr/learn/courses/30/lessons/86491
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int solution(vector<vector<int>> sizes) {
int answer = 0;
int left = 0, right = 0;
for(int i = 0; i < sizes.size(); i ++){
left = max(left, max(sizes[i][0], sizes[i][1]));
right = max(right, min(sizes[i][0], sizes[i][1]));
}
answer = left * right;
return answer;
}