Submission #1080535

#TimeUsernameProblemLanguageResultExecution timeMemory
1080535shmaxSoccer Stadium (IOI23_soccer)C++17
1.50 / 100
204 ms39504 KiB
#include "soccer.h" #include "bits/stdc++.h" using namespace std; using i32 = int; #define int long long #define len(x) (int)(x.size()) #define all(x) x.begin(), x.end() #define inf 1000'000'000'000'000'000LL #define bit(x, i) (((x) >> i) & 1) template<typename T> using vec = vector<T>; i32 biggest_stadium(i32 n, std::vector<std::vector<i32>> F) { int cnt = 0; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { cnt += F[i][j] == 0; if ((i == 0 or i == n - 1) and (j == 0 or j == n - 1)) continue; if (F[i][j]) return 0; } } return cnt; }
#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...