이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "rect.h"
#include<bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx,avx2,fma")
using namespace std;
long long count_rectangles(vector<vector<int> > a){
    int m=a[0].size(), n=a[0].size();
    int coun=0;
    if(n<3){
        return 0;
    }
    for(int k=1; k<m-1; k++){
        for(int l=k; l<m-1; l++){
            bool is=true;
            for(int b=k; b<=l; b++){
                if(a[1][b]>=a[1][k-1] || a[1][b]>=a[1][l+1] || a[0][b]>=a[1][b] || a[2][b]>=a[1][b])
                    is=false;
            }
            if(is)
                coun++;
        }
    }
    return coun;
}
| # | 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... |