Submission #501308

#TimeUsernameProblemLanguageResultExecution timeMemory
501308ala2Knapsack (NOI18_knapsack)C++14
12 / 100
1 ms292 KiB
#include <bits/stdc++.h> using namespace std; int main() { int s; cin>>s; int n; cin>>n; int a,b,c; cin>>a>>b>>c; int v=s/b; cout<<min(v,c)*a<<endl; }
#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...