| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 397728 | ly20 | Rectangles (IOI19_rect) | C++17 | 7 ms | 460 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "rect.h"
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2512, MAXK = 13;
int n, m;
int tb[MAXN][MAXN];
long long count_rectangles(vector<vector<int> > ts) {
n = ts.size();
m = ts[0].size();
if(n < 3 || m < 3) return 0;
long long resp = 0;
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
tb[i + 1][j + 1] = ts[i][j];
}
}
for(int i = 2; i < m; i++) {
int mn = 1123456789;
for(int j = i; j < m; j++) {
mn = min(tb[2][j], mn);
if(tb[2][j] >= tb[1][j] || tb[2][j] >= tb[3][j]) break;
if(mn < tb[2][i - 1] && mn < tb[2][j + 1]) resp++;
}
}
return resp;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
