# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
145050 | faremy | Global Warming (CEOI18_glo) | C++14 | 503 ms | 9432 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 <iostream>
#include <algorithm>
#include <set>
struct Seq
{
Seq(int v, int s) : maxVal(v), size(s) {}
int maxVal, size;
bool operator <(const Seq &other) const
{
return (maxVal < other.maxVal);
}
};
const int MAXN = 2e5;
int temp[MAXN];
int lis[MAXN], lds[MAXN];
std::set<Seq> stacket;
void insert(Seq sequence)
{
while (stacket.lower_bound(sequence) != stacket.end() && stacket.lower_bound(sequence)->size <= sequence.size)
stacket.erase(stacket.lower_bound(sequence));
std::set<Seq>::iterator prev = stacket.upper_bound(sequence);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |