| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1357174 | vjudge1 | Knapsack (NOI18_knapsack) | C++17 | 1 ms | 344 KiB |
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
int main(){
int capacity, items;
cin >> capacity >> items;
int value, weight, number;
cin >> value >> weight >> number;
int take = min((capacity / weight), number);
int total = take * value;
cout << total;;;;;;;;
}| # | 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... | ||||
