# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1084521 | 2024-09-06T11:03:56 Z | thangdz2k7 | 축구 경기장 (IOI23_soccer) | C++17 | 200 ms | 39556 KB |
// author : thembululquaUwU // 3.9.2024 #include <bits/stdc++.h> #define pb push_back #define fi first #define se second #define endl '\n' using namespace std; using ll = long long; using ii = pair <int, int>; using vi = vector <int>; const int MaxN = 2e5; const int mod = 1e9 + 7; void maxl(auto &a, auto b) {a = max(a, b);} void minl(auto &a, auto b) {a = min(a, b);} int biggest_stadium(int n, vector <vi> f){ // if (n > 30){ int ans = 0; vi l(n, -1), r(n, -1); int st = -1, ed = n; for (int i = 0; i < n; ++ i){ int nt = 0; for (int j = 0; j < n; ++ j) { if (!f[i][j]){ if (l[i] == -1) l[i] = j; r[i] = j; ++ ans; if (st == -1) st = i; if (i > ed) return 0; if (nt) return 0; } else if (l[i] != -1) nt = 1; } if (l[i] == -1) ed = i; } for (int i = st; i < ed; ++ i){ for (int j = i + 1; j < ed; ++ j){ if (l[i] <= l[j] && r[j] <= r[i]) continue; if (l[j] <= l[i] && r[i] <= r[j]) continue; return 0; } } for (int i = 0; i < n; ++ i) l[i] = -1, r[i] = -1; st = -1, ed = n; for (int j = 0; j < n; ++ j){ int nt = 0; for (int i = 0; i < n; ++ i) { if (!f[i][j]){ if (l[j] == -1) l[j] = i; r[j] = i; if (st == -1) st = j; if (j > ed) return 0; if (nt) return 0; } else if (l[j] != -1) nt = 1; } if (l[j] == -1) ed = j; } return ans; //} }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 348 KB | partial |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | ok |
2 | Correct | 0 ms | 348 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Correct | 0 ms | 348 KB | ok |
5 | Correct | 0 ms | 348 KB | ok |
6 | Partially correct | 0 ms | 348 KB | partial |
7 | Partially correct | 1 ms | 348 KB | partial |
8 | Partially correct | 13 ms | 2908 KB | partial |
9 | Partially correct | 200 ms | 39556 KB | partial |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | ok |
2 | Correct | 0 ms | 348 KB | ok |
3 | Partially correct | 0 ms | 360 KB | partial |
4 | Partially correct | 0 ms | 348 KB | partial |
5 | Partially correct | 0 ms | 348 KB | partial |
6 | Partially correct | 0 ms | 348 KB | partial |
7 | Partially correct | 0 ms | 440 KB | partial |
8 | Correct | 1 ms | 348 KB | ok |
9 | Correct | 0 ms | 348 KB | ok |
10 | Partially correct | 0 ms | 344 KB | partial |
11 | Partially correct | 0 ms | 348 KB | partial |
12 | Partially correct | 0 ms | 348 KB | partial |
13 | Correct | 0 ms | 348 KB | ok |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 348 KB | partial |
2 | Correct | 0 ms | 348 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Partially correct | 0 ms | 360 KB | partial |
5 | Partially correct | 0 ms | 348 KB | partial |
6 | Partially correct | 0 ms | 348 KB | partial |
7 | Partially correct | 0 ms | 348 KB | partial |
8 | Partially correct | 0 ms | 440 KB | partial |
9 | Correct | 1 ms | 348 KB | ok |
10 | Correct | 0 ms | 348 KB | ok |
11 | Partially correct | 0 ms | 344 KB | partial |
12 | Partially correct | 0 ms | 348 KB | partial |
13 | Partially correct | 0 ms | 348 KB | partial |
14 | Correct | 0 ms | 348 KB | ok |
15 | Partially correct | 0 ms | 344 KB | partial |
16 | Partially correct | 0 ms | 348 KB | partial |
17 | Partially correct | 0 ms | 348 KB | partial |
18 | Partially correct | 0 ms | 348 KB | partial |
19 | Partially correct | 0 ms | 348 KB | partial |
20 | Incorrect | 0 ms | 348 KB | wrong |
21 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 348 KB | partial |
2 | Correct | 0 ms | 348 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Correct | 0 ms | 348 KB | ok |
5 | Correct | 0 ms | 348 KB | ok |
6 | Partially correct | 0 ms | 360 KB | partial |
7 | Partially correct | 0 ms | 348 KB | partial |
8 | Partially correct | 0 ms | 348 KB | partial |
9 | Partially correct | 0 ms | 348 KB | partial |
10 | Partially correct | 0 ms | 440 KB | partial |
11 | Correct | 1 ms | 348 KB | ok |
12 | Correct | 0 ms | 348 KB | ok |
13 | Partially correct | 0 ms | 344 KB | partial |
14 | Partially correct | 0 ms | 348 KB | partial |
15 | Partially correct | 0 ms | 348 KB | partial |
16 | Correct | 0 ms | 348 KB | ok |
17 | Partially correct | 0 ms | 344 KB | partial |
18 | Partially correct | 0 ms | 348 KB | partial |
19 | Partially correct | 0 ms | 348 KB | partial |
20 | Partially correct | 0 ms | 348 KB | partial |
21 | Partially correct | 0 ms | 348 KB | partial |
22 | Incorrect | 0 ms | 348 KB | wrong |
23 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 348 KB | partial |
2 | Correct | 0 ms | 348 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Correct | 0 ms | 348 KB | ok |
5 | Correct | 0 ms | 348 KB | ok |
6 | Partially correct | 0 ms | 360 KB | partial |
7 | Partially correct | 0 ms | 348 KB | partial |
8 | Partially correct | 0 ms | 348 KB | partial |
9 | Partially correct | 0 ms | 348 KB | partial |
10 | Partially correct | 0 ms | 440 KB | partial |
11 | Correct | 1 ms | 348 KB | ok |
12 | Correct | 0 ms | 348 KB | ok |
13 | Partially correct | 0 ms | 344 KB | partial |
14 | Partially correct | 0 ms | 348 KB | partial |
15 | Partially correct | 0 ms | 348 KB | partial |
16 | Correct | 0 ms | 348 KB | ok |
17 | Partially correct | 0 ms | 344 KB | partial |
18 | Partially correct | 0 ms | 348 KB | partial |
19 | Partially correct | 0 ms | 348 KB | partial |
20 | Partially correct | 0 ms | 348 KB | partial |
21 | Partially correct | 0 ms | 348 KB | partial |
22 | Incorrect | 0 ms | 348 KB | wrong |
23 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 348 KB | partial |
2 | Correct | 0 ms | 348 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Correct | 0 ms | 348 KB | ok |
5 | Correct | 0 ms | 348 KB | ok |
6 | Correct | 0 ms | 348 KB | ok |
7 | Partially correct | 0 ms | 348 KB | partial |
8 | Partially correct | 1 ms | 348 KB | partial |
9 | Partially correct | 13 ms | 2908 KB | partial |
10 | Partially correct | 200 ms | 39556 KB | partial |
11 | Partially correct | 0 ms | 360 KB | partial |
12 | Partially correct | 0 ms | 348 KB | partial |
13 | Partially correct | 0 ms | 348 KB | partial |
14 | Partially correct | 0 ms | 348 KB | partial |
15 | Partially correct | 0 ms | 440 KB | partial |
16 | Correct | 1 ms | 348 KB | ok |
17 | Correct | 0 ms | 348 KB | ok |
18 | Partially correct | 0 ms | 344 KB | partial |
19 | Partially correct | 0 ms | 348 KB | partial |
20 | Partially correct | 0 ms | 348 KB | partial |
21 | Correct | 0 ms | 348 KB | ok |
22 | Partially correct | 0 ms | 344 KB | partial |
23 | Partially correct | 0 ms | 348 KB | partial |
24 | Partially correct | 0 ms | 348 KB | partial |
25 | Partially correct | 0 ms | 348 KB | partial |
26 | Partially correct | 0 ms | 348 KB | partial |
27 | Incorrect | 0 ms | 348 KB | wrong |
28 | Halted | 0 ms | 0 KB | - |