Source code for submission s887

mosquito.cpp

  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(void)
  6. {
  7. int M,P,L,E,R,S,N;
  8. int tmp;
  9. cin >> M >> P >> L >> E >> R >> S >> N;
  10. for(;N>0;N--)
  11. {
  12. tmp = P;
  13. P = L/R;
  14. L = E*M;
  15. M = tmp/S;
  16.  
  17. }
  18. cout << M << endl;
  19. return(0);
  20. }
  21.