Source code for submission s607

mosquito.cpp

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