# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1090339 | alexdumitru | Building Bridges (CEOI17_building) | C++17 | 71 ms | 67256 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>
using ll = long long;
const int NMAX = 1e5;
const int VMAX = 1e6;
int n;
ll w[NMAX + 1];
ll h[NMAX + 1];
ll dp[NMAX + 1];
ll sp[NMAX + 1];
void read() {
std::cin >> n;
for (int i = 1; i <= n; i++)
std::cin >> h[i];
for (int i = 1; i <= n; i++) {
std::cin >> w[i];
sp[i] = sp[i - 1] + w[i];
}
}
ll get_sum(int l, int r) {
return sp[r] - sp[l - 1];
}
struct Line {
ll a, b;
Line() : a(0), b(LLONG_MAX) {}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |