Submission #621495

#TimeUsernameProblemLanguageResultExecution timeMemory
621495pirhosigRectangles (IOI19_rect)C++17
0 / 100
62 ms28288 KiB
#include "rect.h" #include <bits/stdc++.h> #define R(a) for (int i = 0; i < a; ++i) #define RR(a) for (int j = 0; j < a; ++j) #define ll long long using namespace std; ll count_rectangles(vector<vector<int>> a) { int N = a.size(); int M = a[0].size(); ll tot = 0; for (int i = 1; i < N - 1; ++i) { for (int j = 1; j < M - 1; ++j) { if (!a[i][j] && a[i - 1][j] && a[i + 1][j] && a[i][j - 1] && a[i][j + 1]) tot++; } } return tot; }
#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...