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.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 4408KB
stdin
6
12
3
stdout
6