제출 #501308

#제출 시각아이디문제언어결과실행 시간메모리
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...