Submission #1037867

#TimeUsernameProblemLanguageResultExecution timeMemory
1037867fv3Soccer Stadium (IOI23_soccer)C++17
6 / 100
186 ms37884 KiB
#include "soccer.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; int biggest_stadium(int N, vector<vector<int>> F) { int x = -1, y = -1; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { if (F[i][j]) { y = j; x = i; } } } if (x == -1) return N*N; return N*N - min(min((x+1)*(y+1), (x+1)*(N-y)), min((N-x)*(y+1), (N-x)*(N-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...