# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1060865 | manhlinh1501 | Knapsack (NOI18_knapsack) | C++17 | 50 ms | 76068 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;
using i64 = long long;
const int MAXN = 105;
const int MAXM = 1e5 + 5;
const int MAXV = 1e3 + 5;
#define ALL(a) (a).begin(), (a).end()
struct event {
int w, v, x;
event(int w = 0, int v = 0, int x = 0) : w(w), v(v), x(x) {}
};
int N, K;
event a[MAXN];
i64 dp[MAXM];
vector<int> g[MAXV];
signed main() {
#define TASK "P1"
if (fopen(TASK ".inp", "r")) {
freopen(TASK ".inp", "r", stdin);
freopen(TASK ".out", "w", stdout);
}
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
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... |