Submission #1082683

#TimeUsernameProblemLanguageResultExecution timeMemory
1082683HappyCapybaraSoccer Stadium (IOI23_soccer)C++17
6 / 100
196 ms39508 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]){ r = i; c = j; break; } } } if (r == -1) return N*N; int l = max(r, N-r-1), w = max(c, N-c-1); return N*(l+w) - l*w; }
#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...