Submission #468241

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