This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#include "soccer.h"
using namespace std;
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
#define rall(s) s.rbegin(),s.rend()
int biggest_stadium(int n,vector<vector<int>>f){
int total=0,x,y;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
if(f[i][j]==1){
total++;
x=i;
y=j;
}
}
}
if(total==0){
return n*n;
}
if(total==1){
if(x==0||y==0||x==n-1||y==n-1){
return n*n-1;
}
x++;
y++;
x=min(x,n+1-x);
y=min(y,n+1-y);
return n*n-x*y;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |