# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1247402 | emad234 | 축구 경기장 (IOI23_soccer) | C++20 | 0 ms | 0 KiB |
#include "soccer.h"
#include "bits/stdc++.h"
#define F first
#define S second
#define ll long long
#define pii pair<ll,ll>
using namespace std;
const ll mxN = 1e6 + 33;
const ll mod = 998244353;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template<class T>
using indexed_set = tree<T,null_type,less<T>,rb_tree_tag, tree_order_statistics_node_update>;
int biggest_stadium(int N, std::vector<std::vector<int>> F)
{
bool can = 1;
for(int i = 0;i < N;i++){
int num = 0;
bool flag = 0;
for(int j = 0;j < N;j++){
if(a[i][j] == 1){
if(num != 0) flag = 1;
num = 0;
}else{
if(flag) can = 0;
num++;
}
}
}
for(int j = 0;j < N;j++){
int num = 0;
bool flag = 0;
for(int i = 0;i < N;i++){
if(a[i][j] == 1){
if(num != 0) flag = 1;
num = 0;
}else{
if(flag) can = 0;
num++;
}
}
}
return (can ? N * N : 0);
}