Submission #1007067

#TimeUsernameProblemLanguageResultExecution timeMemory
1007067NeroZeinSoccer Stadium (IOI23_soccer)C++17
1.50 / 100
189 ms31828 KiB
#include "soccer.h" #include <bits/stdc++.h> using namespace std; int biggest_stadium(int n, vector<vector<int>> F) { int r = -1, c = -1; for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { if (F[i][j] == 1) { r = i, c = j; } } } if (c == -1) { return n * n; } int rr = min(r, n - r - 1); int cc = min(c, n - c - 1); int ans = n * n - rr - cc - 1; return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...