# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
61828 | IvanC | Building Bridges (CEOI17_building) | C++17 | 682 ms | 16208 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 namespace std;
typedef long long ll;
typedef long double ld;
const int MAXN = 1e5 + 10;
const int BUCKET = 320;
const ll INF = 1e18;
struct line{
ll a,b;
line(ll _a = 0,ll _b = 0){
a = _a;
b = _b;
}
ll get(ll x){return a*x + b;}
ld get_ld(ld x){return a*x + b;}
bool operator<(const line& other)const{
if(a != other.a) return a > other.a;
return b > other.b;
}
};
vector<line> hull,light_lines;
ll dp[MAXN],H[MAXN],W[MAXN],pref[MAXN],b[MAXN],a[MAXN];
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |