제출 #484276

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