Source code for submission s800

mosquito.cpp

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