This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
void solve(){
ll s, n; cin>>s>>n; //n=1
ll v, w, k; cin>>v>>w>>k;
ll tmp=s/w;
if(k>=tmp){
cout << v*tmp << '\n';
} else {
cout << v*k << '\n';
}
return;
}
int main(){
cin.tie(NULL)->sync_with_stdio(false);
bool multitest=false;
if(multitest){
ll t; cin>>t;
while(t--){
solve();
}
} else {
solve();
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |