fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. double x;
  8. double y;
  9. cin >> x >> y;
  10. double r=x*1000/y;
  11. cout << ceil(r) << endl;
  12. }
Success #stdin #stdout 0s 3416KB
stdin
1 300
stdout
4