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 <bits/stdc++.h>
#define ll long long
//#define endl '\n'
//#define f first
//#define s second
using namespace std;
int rectangle(int r , int c , int h , int w , int q[3001][3001])
{
int sol = INT_MAX;
for (int i=0; r-h+1>i; i++)
{
for (int j=0; c-w+1>j; j++)
{
vector<int> p;
for (int v=i; i+h>v; v++)
{
for (int u=j; j+w>u; u++)
{
p.push_back(q[v][u]);
}
}
sort(p.begin() , p.end());
sol = min(sol , p[p.size()/2]);
}
}
return sol;
}
# | 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... |