leetcode 1503. 所有蚂蚁掉下来前的最后一刻-耗时100 Problem: 1503. 所有蚂蚁掉下来前的最后一刻耗时100%脑筋急转弯看了提示的不需要转弯的Codeclass Solution { public: int getLastMoment(int n, vectorint left, vectorint right) { int a 0, c 0; if(left.size()! 0) a *max_element(left.begin(), left.end()); if(right.size()! 0) c n - *min_element(right.begin(), right.end()); return max(a, c); } };