# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
847527 | rainboy | Soccer Stadium (IOI23_soccer) | C++17 | 341 ms | 94736 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.
/* upsolved using ideas from PurpleCrayon */
#include "soccer.h"
#include <vector>
using namespace std;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
const int N = 2000;
int min(int a, int b) { return a < b ? a : b; }
int max(int a, int b) { return a > b ? a : b; }
int ll[N][N], uu[N][N], dd[N][N], dp[N][N], ii[N];
int biggest_stadium(int n, vvi aa) {
for (int i = 0; i < n; i++)
for (int j = 0, l = 0; j < n; j++)
if (aa[i][j])
l = j + 1;
else
ll[i][j] = l;
for (int j = 0; j < n; j++)
ii[j] = 0;
for (int i = 0; i < n; i++)
for (int j = 0, u = 0; j < n; j++)
if (aa[i][j])
ii[j] = i + 1, u = 0;
else
# | 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... |