이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |