# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
658163 | stevancv | Quality Of Living (IOI10_quality) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "quality.h"
#define ll long long
#define ld long double
#define sp ' '
#define en '\n'
#define smin(a, b) a = min(a, b)
#define smax(a, b) a = max(a, b)
using namespace std;
const int N = 3e3 + 2;
const int inf = 2e9;
int rectangle(int n, int m, int h, int w, int q[3000][3000]) {
vector<vector<int>> a(n + 1, vector<int>(m + 1));
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= m; j++) {
a[i][j] = q[i - 1][j - 1];
}
}
int l = 1, r = n * m, ans = n * m;
while (l <= r) {
int mid = l + r >> 1;
/*if (Can(mid)) {
r = mid - 1;
ans = mid;
}
else l = mid + 1;*/
}
return ans;
}