# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
477619 | JovanB | Aliens (IOI16_aliens) | C++17 | 2093 ms | 6876 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 "aliens.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const ll INF = 1000000000000000000LL;
const int N = 1000000;
struct line{
ll k, n;
ll eval(ll x){ return k*x + n; }
ld intersect(line g){
return 1.0*(n - g.n)/(g.k - k);
}
} seg[4*N+5];
ll dp[N+5];
ll presek(pair <ll, ll> a, pair <ll, ll> b){
ll h = max(0LL, a.second - b.first + 1);
return h*h;
}
void dodaj(deque <line> &q, line k){
while(q.size() > 1){
line g = q.back();
q.pop_back();
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |