Submission #484278

#TimeUsernameProblemLanguageResultExecution timeMemory
484278maxshevKnapsack (NOI18_knapsack)C++14
12 / 100
0 ms204 KiB
#include <bits/stdc++.h> using namespace std; int main() { int s, n; cin >> s >> n; int v, w, k; cin >> v >> w >> k; cout << min(s / w, k) * v << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...