Submission #1233445

#TimeUsernameProblemLanguageResultExecution timeMemory
1233445antonn축구 경기장 (IOI23_soccer)C++20
0 / 100
1 ms328 KiB
#include "soccer.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1000 + 7; const int M = 30 + 7; int a[N][N], pref[N][N]; int biggest_stadium(int n, vector<vector<int>> f) { for (int i = 1; i <= n; ++i) { for (int j = 1; j <= n; ++j) { a[i][j] = f[i - 1][j - 1]; pref[i][j] = pref[i][j - 1] + a[i][j]; } } int x = -1, y = -1; for (int i = 1; i <= n; ++i) { for (int j = 1; j <= n; ++j) { if (a[i][j]) x = i, y = j; } } if (x == -1) return n * n; return n * n - 1; }
#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...