#include "quality.h"
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int rectangle(int R, int C, int H, int W, int Q[3001][3001])
{
int res = 0;
vector<int> temp;
for(int i = H-1; i < R; i++)
{
for(int j = W-1; j < C; j++)
{
temp.clear();
for(int x = i-H+1; x <= i; x++)
{
for(int y = j-W+1; y <= j; y++)
{
temp.push_back(Q[x][y]);
}
}
sort(temp.begin(), temp.end());
res = min(res, temp[temp.size()/2]);
}
}
return res;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
492 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
492 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
492 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
492 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
492 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |