fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int j,i,n,g;
  7. cin>>n;
  8. cin>>i;
  9. cin>>j;
  10. g=i*j;
  11. if(g>=n)cout<<n;
  12. else cout<<g;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5320KB
stdin
19
3
30
stdout
19