fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int e, f, c;
  6. cin >> e >> f >> c;
  7. cout << (int)((e + f)/(c - 1 + 0.0001));
  8. return 0;
  9. }
Success #stdin #stdout 0s 4184KB
stdin
 9 0 3 
stdout
4