Source code for submission s738

mosquito.cpp

  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int M,P,L,E,R,S,N;
  7. int Mo,Po,Lo;
  8. while(1)
  9. {
  10. if(cin.eof()) break;
  11. cin >> M >> P >> L >> E >> R >> S >> N;
  12. //
  13. for(int n = 0; n < N; n++)
  14. {
  15. Mo = M; Po = P; Lo = L;
  16. //
  17. L = Mo*E;
  18. P = Lo/R;
  19. M = Po/S;
  20. }
  21. cout << M << '\n';
  22. }
  23. return 0;
  24. }