# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
891513 | Muhammad_Aneeq | Rectangles (IOI19_rect) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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;
}