# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
891513 | Muhammad_Aneeq | Rectangles (IOI19_rect) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "rect.h"
#include <cstdio>
#include <iostream>
#include <cassert>
#include "sol.cpp"
using namespace std;
static const int buf_size = 4096;
inline int getChar() {
static char buf[buf_size];
static int len = 0, pos = 0;
if (pos == len) {
pos = 0;
len = fread(buf, 1, buf_size, stdin);
}
if (pos == len)
return -1;
return buf[pos++];
}
inline int readChar() {
int c = getChar();
while (c <= 32)
c = getChar();
return c;
}
inline int readInt() {
int s = 1, c = readChar();
int x = 0;
while ('0' <= c && c <= '9') {
x = x * 10 + c - '0';
c = getChar();
}
return x;
}
int main() {
int n;cin>>n;
int m;cin>>m;
vector<vector<int> > a(n, vector<int>(m));
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
cin>>a[i][j];
}
}
fclose(stdin);
long long result = count_rectangles(a);
printf("%lld\n", result);
fclose(stdout);
return 0;
}