# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
368100 | ogibogi2004 | Cloud Computing (CEOI18_clo) | C++14 | 435 ms | 1516 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;
#define ll long long
const ll MAXN=1e5+6;
const ll INF=1e17;
struct event
{
int c,f,v;
int type;
bool operator<(event const& other)const
{
if(f!=other.f)return f>other.f;
if(type!=other.type)return type==1;
return v<other.v;
}
};
vector<event>e;
ll dp[MAXN];
ll n,m;
void solve()
{
cin>>n;
for(int i=0;i<n;i++)
{
int x,y,z;
cin>>x>>y>>z;
e.push_back({x,y,z,1});
}
cin>>m;
for(int i=0;i<m;i++)
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... |