fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. double n, m, k;
  7. cin >> n >> m >> k;
  8. cout << ceil (n / k) + ceil (m / k);
  9. return 0;
  10. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
inf