# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
646438 | iulia13 | Cloud Computing (CEOI18_clo) | C++14 | 527 ms | 1800 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 int N = 4005;
const ll inf = 2e17;
struct ura{
ll c, f, v;
} a[N];
bool cmp (ura x, ura y)
{
return x.f > y.f;
}
ll n, m, mc;
ll dp[2][N * 50];
int main()
{
cin >> n;
for (int i = 1; i <= n; i++)
{
cin >> a[i].c >> a[i].f >> a[i].v;
a[i].v *= -1;
mc += a[i].c;
}
cin >> m;
for (int i = n + 1; i <= n + m; i++)
{
cin >> a[i].c >> a[i].f >> a[i].v;
a[i].c *= -1;
}
# | 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... |