제출 #995955

#제출 시각아이디문제언어결과실행 시간메모리
995955Jassar삶의 질 (IOI10_quality)C++14
40 / 100
5033 ms5156 KiB
#include <bits/stdc++.h> #define ll long long //#define endl '\n' //#define f first //#define s second using namespace std; int rectangle(int r , int c , int h , int w , int q[3001][3001]) { int sol = INT_MAX; for (int i=0; r-h+1>i; i++) { for (int j=0; c-w+1>j; j++) { vector<int> p; for (int v=i; i+h>v; v++) { for (int u=j; j+w>u; u++) { p.push_back(q[v][u]); } } sort(p.begin() , p.end()); sol = min(sol , p[p.size()/2]); } } return sol; }
#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...