Submission #1070005

#TimeUsernameProblemLanguageResultExecution timeMemory
1070005MohamedFaresNebiliSoccer Stadium (IOI23_soccer)C++17
6 / 100
190 ms39444 KiB
#include <bits/stdc++.h> using namespace std; int biggest_stadium(int N, vector<vector<int>> F) { int r = -1, c = -1; for(int l = 0; l < N; l++) { for(int i = 0; i < N; i++) { if(F[l][i] == 0) continue; r = l, c = i; } } if(r == -1) return N * N; return max({r * N + (N - r) * c, (r + 1) * c + (N - r - 1) * N, (r + 1) * (N - c - 1) + (N - r - 1) * N, r * N + (N - r) * (N - c - 1)}); }
#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...