fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. float n,m,k;
  7. cin >> n >> m >> k;
  8. cout << ceil(n/k)+ceil(m/k) << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 5464KB
stdin
37 34 42
stdout
2