This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |