제출 #301258

#제출 시각아이디문제언어결과실행 시간메모리
301258eagle30Rectangles (IOI19_rect)C++14
0 / 100
5071 ms22776 KiB
#include "rect.h" #include<bits/stdc++.h> #pragma GCC optimize("Ofast") #pragma GCC optimization("unroll-loops") #pragma GCC target("avx,avx2,fma") using namespace std; long long count_rectangles(vector<vector<int> > a){ int n=a.size(), m=a[0].size(); int coun=0; for(int i=1; i<n-1; i++){ for(int j=i; j<n-1; j++){ for(int k=1; k<m-1; k++){ bool is=true; for(int l=k; l<m-1; l++){ if(a[i][l]>=a[i-1][l] || a[i][l]>=a[i+1][l] || a[i][l]>=a[i][k-1] || a[i][l]>=a[i][l+1]) is=false; if(is) coun++; } } } } return coun; }

컴파일 시 표준 에러 (stderr) 메시지

rect.cpp:4: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    4 | #pragma GCC optimization("unroll-loops")
      |
#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...