제출 #624953

#제출 시각아이디문제언어결과실행 시간메모리
624953DrollWolf삶의 질 (IOI10_quality)C++17
40 / 100
5036 ms3020 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 i, j, k, l, mini; mini= INT_MAX; for(i=0;i<=R-H;i++) { for(j=0;j<=C-W;j++) { vector<int> vect; for(k=i;k<i+H;k++) { for(l=j;l<j+W;l++) vect.push_back(Q[k][l]); } sort(vect.begin(), vect.end()); mini=min(mini, vect[(H*W)/2]); } } return mini; }
#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...