# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
899634 | 2024-01-06T15:42:28 Z | Szil | Soccer Stadium (IOI23_soccer) | C++17 | 1 ms | 440 KB |
#include <bits/stdc++.h> using namespace std; using ll = long long; int solve1(int N, vector<vector<int>> F) { for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { if (F[i][j]) { int up = j+1; int down = N-j; int left = i+1; int right = N-i; vector<int> x = { up*right, right*down, down*left, left*up }; int best = *min_element(x.begin(), x.end()); return N*N-best; } } } } int biggest_stadium(int N, vector<vector<int>> F) { int trees = 0; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { if (F[i][j]) trees++; } } if (trees == 1) return solve1(N, F); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 344 KB | partial |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | ok |
2 | Correct | 0 ms | 348 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Correct | 0 ms | 344 KB | ok |
5 | Incorrect | 0 ms | 440 KB | wrong |
6 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | ok |
2 | Correct | 0 ms | 348 KB | ok |
3 | Partially correct | 1 ms | 348 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 | 436 KB | partial |
8 | Incorrect | 0 ms | 348 KB | wrong |
9 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 344 KB | partial |
2 | Correct | 0 ms | 344 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Partially correct | 1 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 | 348 KB | partial |
8 | Partially correct | 0 ms | 436 KB | partial |
9 | Incorrect | 0 ms | 348 KB | wrong |
10 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 344 KB | partial |
2 | Correct | 0 ms | 344 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Correct | 0 ms | 348 KB | ok |
5 | Correct | 0 ms | 344 KB | ok |
6 | Partially correct | 1 ms | 348 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 | 436 KB | partial |
11 | Incorrect | 0 ms | 348 KB | wrong |
12 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 344 KB | partial |
2 | Correct | 0 ms | 344 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Correct | 0 ms | 348 KB | ok |
5 | Correct | 0 ms | 344 KB | ok |
6 | Partially correct | 1 ms | 348 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 | 436 KB | partial |
11 | Incorrect | 0 ms | 348 KB | wrong |
12 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 344 KB | partial |
2 | Correct | 0 ms | 344 KB | ok |
3 | Correct | 0 ms | 348 KB | ok |
4 | Correct | 0 ms | 348 KB | ok |
5 | Correct | 0 ms | 344 KB | ok |
6 | Incorrect | 0 ms | 440 KB | wrong |
7 | Halted | 0 ms | 0 KB | - |