fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main () {
  6. unsigned long long a, b, c, d, v;
  7. cin>>a>>b>>c>>d;
  8. v = a * b * c;
  9. cout<<( v + d - 1) / d;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4264KB
stdin
1 1 1 400
stdout
1