2 solutions
- 1
Information
- ID
- 4
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 10
- Tags
- # Submissions
- 6
- Accepted
- 2
- Uploaded By
C++ :
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,k,t;
cin>>n>>k>>t;
if(k*t>n){
cout<<n;
}
else cout<<k*t;
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.