Submission #484277

#TimeUsernameProblemLanguageResultExecution timeMemory
484277maxshevKnapsack (NOI18_knapsack)C++14
12 / 100
1 ms204 KiB
#include <bits/stdc++.h> using namespace std; int main() { int s, n; cin >> s >> n; long 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...