제출 #832902

#제출 시각아이디문제언어결과실행 시간메모리
832902Marco_EscandonRectangles (IOI19_rect)C++17
18 / 100
5071 ms22764 KiB
#include<bits/stdc++.h> using namespace std; typedef long long ll; long long count_rectangles(std::vector<std::vector<int> > cad) { ll n=cad.size(),m=cad[0].size(); ll cont=0; for(int i=1; i<n-1; i++) { for(int j=1; j<m-1; j++) { for(int k=i; k<n-1; k++) { for(int l=j; l<m-1; l++) { ll pl=0; for(int o=i; o<=k; o++) { for(int p=j; p<=l; p++) { if(cad[i-1][p]<=cad[o][p]||cad[k+1][p]<=cad[o][p]||cad[o][j-1]<=cad[o][p]||cad[o][l+1]<=cad[o][p]) { pl=1; } } } if(pl==0) cont++; } } } } return cont; }
#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...