Submission #1069990

# Submission time Handle Problem Language Result Execution time Memory
1069990 2024-08-22T10:52:17 Z MohamedFaresNebili Soccer Stadium (IOI23_soccer) C++17
0 / 100
0 ms 348 KB
#include <bits/stdc++.h>

        using namespace std;

        int biggest_stadium(int N, vector<vector<int>> F) {
            int r = -1, c = -1;
            for(int l = 0; l < N; l++) {
                for(int i = 0; i < N; i++) {
                    if(F[l][i] == 0) continue;
                    r = l, c = i;
                }
            }
            if(r == -1) return N * N;
            return max({r * N + (N - r) * c, r * c + (N - r) * N, r * (N - c) + (N - r) * N, r * N + (N - r) * (N - c)});
        }
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB ok
2 Incorrect 0 ms 348 KB wrong
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB ok
2 Incorrect 0 ms 348 KB wrong
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -