# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
868678 | faremy | 축구 경기장 (IOI23_soccer) | C++17 | 328 ms | 70936 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "soccer.h"
#include <stack>
struct Rectangle
{
Rectangle(int w, int h) : width(w), height(h) {}
int width, height;
};
const int MAXN = 2000;
int longest_above[MAXN][MAXN];
int longest_below[MAXN][MAXN];
void fill_longest(int N, std::vector<std::vector<int>> &F)
{
for (int iCol = 0; iCol < N; iCol++)
longest_above[0][iCol] = 0;
for (int iRow = 1; iRow < N; iRow++)
for (int iCol = 0; iCol < N; iCol++)
longest_above[iRow][iCol] = (F[iRow - 1][iCol] ? 0 : longest_above[iRow - 1][iCol] + 1);
for (int iCol = 0; iCol < N; iCol++)
longest_below[N - 1][iCol] = 0;
for (int iRow = N - 2; iRow > -1; iRow--)
for (int iCol = 0; iCol < N; iCol++)
longest_below[iRow][iCol] = (F[iRow + 1][iCol] ? 0 : longest_below[iRow + 1][iCol] + 1);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |