Submission #1069990

#TimeUsernameProblemLanguageResultExecution timeMemory
1069990MohamedFaresNebiliSoccer Stadium (IOI23_soccer)C++17
0 / 100
0 ms348 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 * c + (N - r) * N, r * (N - c) + (N - r) * N, r * N + (N - r) * (N - c)}); }
#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...