Submission #1069603

#TimeUsernameProblemLanguageResultExecution timeMemory
1069603Faisal_SaqibSoccer Stadium (IOI23_soccer)C++17
6 / 100
195 ms37952 KiB
#include <bits/stdc++.h> using namespace std; #define ll int #define vll vector<ll> #define pb push_back int biggest_stadium(int n, std::vector<std::vector<int>> grid) { vector<pair<int,int>> trees; for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { if(grid[i][j]) { trees.pb({i,j}); } } } if(trees.size()==0) { return (n*n); } else if(trees.size()==1) { int x=trees[0].first; int y=trees[0].second; // if(x==0 or x==(n-1) or y==0 or y==(n-1)) // { return (n*n)-min({(x+1)*(y+1),(n-x)*(y+1),(n-y)*(x+1),(n-y)*(n-x)}); // } // else // return (n*n)-1; } else { } return 0; }
#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...