제출 #995947

#제출 시각아이디문제언어결과실행 시간메모리
995947Muaath_5삶의 질 (IOI10_quality)C++17
0 / 100
6 ms2392 KiB
#include "quality.h" #include <bits/stdc++.h> using namespace std; int rectangle(int R, int C, int H, int W, int Q[3001][3001]) { int sol = 0; for (int i = 0; i < R; i++) { for (int j = 0; j < C; j++) { vector<int> v(H*W); for (int x = i; x < i+H; x++) { for (int y = j; y < j+W; y++) { v.push_back(Q[x][y]); } } sort(v.begin(), v.end()); sol = max(sol, v[H*W/2]); } } return sol; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...