fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int x;
  8. int y;cin>>x>>y;
  9. cout << (x*y-1)/(y-1) << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5604KB
stdin
Standard input is empty
stdout
63436