LeetCode Weekly Contest 180
問題文
省略
省略
C++に変換後のコードはこちら
#define main dummy_main
{}
#undef main
class Solution {
public:
vector<int> luckyNumbers (vector<vector<int>>& A) {
int X = A.size(), Y = A[0].size();
vector<int> res;
rep(i,X) rep(j,Y){
rep(k,Y) if(A[i][j] > A[i][k]) break_continue;
rep(k,X) if(A[i][j] < A[k][j]) break_continue;
res.push_back(A[i][j]);
}
return res;
}
};
Current time: 2024年04月21日00時03分27秒
Last modified: 2020年03月30日02時53分54秒 (by laycrs)
Tags: Competitive_Programming_Incomplete LeetCode
トップページに戻る
Logged in as: unknown user (not login)