제출 #996074

#제출 시각아이디문제언어결과실행 시간메모리
996074Yazan_SA삶의 질 (IOI10_quality)C++14
40 / 100
5058 ms5224 KiB
#include "quality.h" #include <vector> #include <algorithm> using namespace std; int rectangle(int R, int C, int H, int W, int Q[3001][3001]) { int bs=1e9; for(int i=0; i<R; i++){ for(int j=0; j<C; j++){ vector<int>v; if(i+H>R || j+W>C)continue; for(int i2=i; i2<i+H; i2++){ for(int j2=j; j2<j+W; j2++){ v.push_back(Q[i2][j2]); } } sort(v.begin(),v.end()); bs=min(bs,v[H*W/2]); } } return bs; }
#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...