# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
137935 | mahmoudbadawy | Split the sequence (APIO14_sequence) | C++17 | 276 ms | 18780 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;
struct line
{
long long m,c;
double x;
int ind;
int isq;
line():m(0),c(0),isq(0),x(0),ind(0){}
line(long long m,long long c,int ind):m(m),c(c),isq(0),x(0),ind(ind){}
bool operator<(const line &other) const
{
if(isq||other.isq) return x<other.x;
if(m==other.m) return ind<other.ind;
return m<other.m;
}
};
struct convex_hull
{
set<line> ss;
set<line>::iterator prev(set<line>::iterator it)
{
return --it;
}
set<line>::iterator next(set<line>::iterator it)
{
return ++it;
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |