Submission #1000398

# Submission time Handle Problem Language Result Execution time Memory
1000398 2024-06-17T12:14:00 Z sofijavelkovska 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>> a)
{
    for (int i=0; i<n; i++)
        for (int j=0; j<n; j++)
            if (a[i][j]==1)
                return max(n*n-(i+1)*(j+1), n*n-(n-i)*(n-j));

    return 0;
}
# 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 -