Submission #1064101

#TimeUsernameProblemLanguageResultExecution timeMemory
1064101AmirAli_H1축구 경기장 (IOI23_soccer)C++17
6 / 100
207 ms55380 KiB
// In the name of Allah #include <bits/stdc++.h> #include "soccer.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; #define F first #define S second #define endl '\n' #define sep ' ' #define pb push_back #define Mp make_pair #define all(x) (x).begin(),(x).end() #define len(x) ((ll) (x).size()) const int maxn = 2000 + 4; int n; int A[maxn][maxn]; vector<pii> ls; int biggest_stadium(int N, vector<vector<int>> F) { n = N; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { A[i][j] = F[i][j]; if (A[i][j] == 1) ls.pb(Mp(i, j)); } } if (len(ls) == 0) return (n * n); else if (len(ls) == 1) { int i = ls.back().F, j = ls.back().S; return (n * n) - (min(i + 1, n - i) * min(j + 1, n - j)); } 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...