Submission #484276

#TimeUsernameProblemLanguageResultExecution timeMemory
484276maxshevKnapsack (NOI18_knapsack)C++14
0 / 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(n / 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...