Submission #1037955

#TimeUsernameProblemLanguageResultExecution timeMemory
1037955ZicrusSoccer Stadium (IOI23_soccer)C++17
6 / 100
208 ms31828 KiB
#include <bits/stdc++.h> #include "soccer.h" using namespace std; typedef long long ll; int biggest_stadium(int n, vector<vector<int>> f) { ll x = -1, y = -1; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (f[i][j]) { x = i; y = j; } } } if (x == -1) return n*n; return max({ x*n + y*n - x*y, (n-1-x)*n + y*n - (n-1-x)*y, x*n + (n-1-y)*n - x*(n-1-y), (n-1-x)*n + (n-1-y)*n - (n-1-x)*(n-1-y), }); }
#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...