1 static int wing=[]()
 2 {
 3     std::ios::sync_with_stdio(false);
 4     cin.tie(NULL);
 5     return 0;
 6 }();
 7 
 8 class Solution 
 9 {
10 public:
11     int maxCount(int m, int n, vector<vector<int>>& ops) 
12     {
13         int minrow=m,mincol=n;
14         for(vector<int> &v:ops)
15         {
16             minrow=min(minrow,v[0]);
17             mincol=min(mincol,v[1]);
18         }
19         return minrow*mincol;
20     }
21 };

找到最小值即可,问题不大

posted on 2018-06-06 10:47  高数考了59  阅读(114)  评论(0编辑  收藏  举报