| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1038403 | fv3 | 축구 경기장 (IOI23_soccer) | C++17 | 4580 ms | 97404 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "soccer.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<vector<int>> ps_h, ps_v;
int biggest_stadium(int N, vector<vector<int>> F)
{
int res = 0;
ps_h = ps_v = vector<vector<int>>(N, vector<int>(N+1));
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++)
{
ps_h[i][j + 1] = ps_h[i][j] + F[i][j];
ps_v[i][j + 1] = ps_v[i][j] + F[j][i];
}
}
vector<pair<int, int>> vpi;
for (int y = 0; y < N; y++)
{
for (int x = 0; x < N; x++)
{
if (!F[y][x])
vpi.push_back({x, y});
}
}
for (int i = 0; i < vpi.size(); i++)
{
int x, y;
tie(x, y) = vpi[i];
for (int j = i+1; j < vpi.size(); j++)
{
int nx, ny;
tie(nx, ny) = vpi[j];
bool b1 = (ps_v[x][max(y, ny) + 1] - ps_v[x][min(y, ny)] > 0 || ps_h[ny][max(x, nx) + 1] - ps_h[ny][min(x, nx)] > 0);
bool b2 = (ps_v[nx][max(y, ny) + 1] - ps_v[nx][min(y, ny)] > 0 || ps_h[y][max(x, nx) + 1] - ps_h[y][min(x, nx)] > 0);
//cout << "(" << x << ", " << y << ") + (" << nx << ", " << ny << ") = " << b1 << ", " << b2 << '\n';
if (b1 && b2)
return -1;
}
}
return vpi.size();
}컴파일 시 표준 에러 (stderr) 메시지
| # | 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... | ||||
