# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
97449 | Kastanda | Luxury burrow (IZhO13_burrow) | C++11 | 493 ms | 14172 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// I do it for the glory
#include<bits/stdc++.h>
using namespace std;
const int N = 1009;
int n, m, k, L[N], R[N], A[N][N], up[N];
inline int Solve(int X)
{
int MX = 0;
memset(up, 0, sizeof(up));
for (int i = 1; i <= n; i++)
{
up[0] = up[m + 1] = -1;
for (int j = 1; j <= m; j++)
up[j] = (A[i][j] < X) ? (0) : (up[j] + 1);
for (int j = 1; j <= m; j++)
{
L[j] = j - 1;
while (up[L[j]] >= up[j])
L[j] = L[L[j]];
}
for (int j = m; j; j--)
{
R[j] = j + 1;
while (up[R[j]] >= up[j])
R[j] = R[R[j]];
MX = max(MX, (R[j] - L[j] - 1) * up[j]);
}
}
return MX;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |