# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
868678 | faremy | Soccer Stadium (IOI23_soccer) | C++17 | 328 ms | 70936 KiB |
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 "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... |